PDA

View Full Version : Question on hiding a div on all but the home page.


ArtK
Jun-13-2009, 03:17 AM
I set up and announcements div on my home page.

I used .homepage #xxxxxxx when I set up the css class.

When I go to my gallery the announcement text still shows up at the bottom of the page.

How do I fix it so that it only displays on the home page.

Thanks

J Allen
Jun-13-2009, 03:38 AM
Try removing it from your footer and putting it in your bio-box.

denisegoldberg
Jun-13-2009, 05:08 AM
You can't just add CSS with .homepage before it to display it. You also need to specify that it be hidden on other pages.

For example:

#my_news {
display: none;
}
.homepage #my_news {
display: block;
}
--- Denise