> I have a div that is only to display on one page. I have made it invisible on 
> all pages with display:none and added the declaration under it but it doesn't 
> appear.
>
> Is there a way to do it without adding style tags to the individual page?

Do you have a web-available example?

As long as the page you are targeting has a body tag or wrapper
element with the id "home" this should work:

#home #mybox {
display:block;
}

(Note using display:block to override the display:none.) If it is not
working the selector you are trying to override is probably more
specific (e.g. body#home div#mybox) and you will need to make your
selector at least that specific.

On the other hand, I would think that you should be able to place
single element on a particular page, thus obviating the need to hide
it on all other pages. The way you are tackling the problem -- putting
it on all pages and then trying to hide on all but one -- sounds
pretty roundabout and backwards on its surface.

Matt Ryan
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to