Prev | Current Page 174 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

A declaration can be
overwritten by another within the same declaration block, within the same style
sheet, or in another style sheet.
Declarations in external style sheets are specified in the order in which they??™re
linked to the document. This is true for style sheets linked via the link element as
well as those linked via the @import statement. Declarations within the style sheet
containing the @import statements will overwrite all of the declarations in the linked
style sheets.
Pay careful attention to the order of link and style elements within the document??™s
head. Declarations in a style element will overwrite those in a style sheet linked
via a link element if the style element is specified after the link element. However,
it??™s a common mistake to assume that declarations in a style element automatically
overwrite those in an external style sheet: if a link element is specified after a style
element, the declarations in the linked style sheet will in fact overwrite those in
the style element.


Pages:
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186