Archive for „CSS Specificity“

Two Ways for you to Reset your CSS

The first way is simple but very efficient when you don’t have tables, iframes, etc. It will reset the padding and margin for all the html elements.

* {
padding: 0;
margin: 0;
font-size: 100%;
background: transparent;
}

The second way, [original]:

html, body, div, span, applet, […]

Popularity: 89% [?]

... more »

Categories: CSS Specificity, CSS Tips, Posted on February 25, 2008 by Choppr

Specificity Rating

CSS Specificity determines when a style property should be applied irrespective of the location at which it will appear in the style sheets. The more specific a style property is, the more likely for it to be applied to the element. These simple steps will help you figure the specificity of style properties.
How to […]

Popularity: 5% [?]

... more »

Categories: CSS Specificity, Posted on January 6, 2008 by Choppr

Descendant Selectors

Descendant selectors in advanced CSS allow you to define styles on elements that are basically located in specific locations in the XHTML document tree. The selectors are defined as patterns, so you can define child elements, grandchild elements and so on. So it’s all related and you will hear/read words like parent, child, sibling and […]

Popularity: 5% [?]

... more »

Categories: CSS Specificity, Posted on December 19, 2007 by Choppr

What is CSS Specificity?

Specificity in CSS is a test that defines how competing style sheet rules can be applied to the document elements. The larger the style sheets are, the more specificity rules can be applied. For example in case you have two style properties on the same element, the last one defined in the document will definitely […]

Popularity: 6% [?]

... more »

Categories: CSS Specificity, Posted on December 15, 2007 by Choppr