Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 9, 2007, 11:49 pm
rate this thread
I've done my best to create a vertical navigation that uses hover with
changing background images. The navigation displays sub choices by
increasing the left margin, reducing the text and changing the hover
I've accomplished this by nesting DIVs and it seems W3C does not like
it. W3C also does not like how I've had to repeat the ID on the <LI>
How would you accomplish this type of navigation while using CSS and
still having it W3C compatible?
Here's the HTML.
Thanks for your help
- Jonathan N. Little
December 10, 2007, 12:27 am
Re: Need Help With Vertical CSS Nav Bar - It Works But It's Not Liked By W3C Validation
ids are one per page, they are meant for unique references. Use
class instead for where you want a style to apply to more than
Time to run through the basics first. A list has list items only
as direct children. You can have a div inside a list item if you
really want. I did on a rather odd and rare occasion have a bit
perhaps you might like go through some of the tutes via: