|
|
 |
Re: FN-FORUM: Overide property in CSS file
date posted 1st March 2004 12:58
Paul Cooper wrote:
>
> Hi
>
> This is puzzling me. All I want is a background image for all pages
> except 1 in a site. So in my css I have ...
>
> body{background-image:url(../images/background.gif);
> background-repeat:no-repeat;}
>
> Then on the page I want to have just a plain white background. I
> thought adding the relevant style to the page would overide what was set
> in the css file. So my body tag would look like....
>
>
>
That isn't going to over-ride the background image style, as it's a
different parameter altogether. I haven't used it before, but would
guess the !important declaration attached to a different style
specifying a one px white/transparent gif would be one way to achieve
this:
body{background-image:url(../images/transparent.gif) !important;
background-color: #fff;}
...and none of this stuff in the body tag, please, just a small
stylesheet in the head of that page ;-)
Paul.
|
 |
|