I need to add a CSS style to a content <div>
, which is present on all pages of my site. However, I do not want to use the new style on the homepage.
All the pages on the site have a similar structure: a header <div>
with navigation bar, followed by a content <div>
with the page's contents.
Best I could think of is to add a wrapper div directly under the content div on the homepage, like so...
<div id="content">
<div id="homepage_content">
....homepage content....
Then I can apply my style to the entire content <div>
using the :not
selector, so the elements under homepage_content
are not included.
This won't work in IE. I've seen jQuery workarounds for it, but we are using Prototype on my site.
Anyone have an idea for me?
Thanks!