REC #178 Cascading Style Sheets level 2 CSS2 Specification

in
0
Your rating: None
Sorry, you need to install flash to see this content.

:step 3 of the cascade algorithm, they are considered to have an ID selector (specificity: a=1, b=0, c=0). For the purpose of step 4, they are considered to be after all other rules. #x97z { color: blue } In the above example, the color of the P element would be red. Although the specificity is the same for both declarations, the declaration in the "style" attribute will override the one in the STYLE element because of cascading rule 4. 6.4.4 Precedence of non-CSS presentational hints The UA may choose to honor presentational hints from other sources than style sheets, for example the FONT element or the "align" attribute in HTML. If so, the non-CSS presentational hints must be translated to the corresponding CSS rules

Recent tutorial posts