On 2010-10-18, at 17:37, Rory Bernstein wrote:

I have this web page:
http://weinraub.ehclients.com/home/

I am trying to use some CSS3 elements here. I have a div with id="nav", and everything is working fine. (for the nav list at top on the white background)

But, when I change that div instead to a <nav> CSS3 thing, the white BG doesn't work.

Here's that page:
http://weinraub.ehclients.com/home/index_css3

They are both using the same style sheet:
http://weinraub.ehclients.com/styles.css

That's your mistake. In a style sheet #nav refers to an element with id="nav". If you want to refer to an _element_ nav you should not use #. The same as if you want to refer to h1 elements. Likewise there is a difference between footer and #footer.


I had this happen on a previous project, where I used <footer></ footer> and my style rules didn't work that way, but when I used <div id="footer"></div> it worked fine. What am I missing here?

Andree Hollander

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to