|
|
 |
RE: FN-FORUM: Overide property in CSS file
date posted 1st March 2004 13:53
>
>
> But strangely putting this in a stylesheet at the top of the
> page did not work.
You've got to do it in the right order.
If you had a stylesheet that said
...
color: red;
color: blue;
...
You'd have blue text. If the stylesheet said
...
color: blue;
color: red;
...
You'd have red text.
The ordering remains important regardless (IIRC) of how or where you define
the style. (ie you can have multiple stylesheets but the order which the
styles are defined remains important).
Accordingly putting the style in the tag takes precedence over
anything else - it's your last possible chance to style the body tag
(without of course using javascript to change it). Can't remember how using
"!important" changes the precedence, sorry, but a half-decent CSS book
should help you figure it out ;>
Cameron
|
 |
|