Hi,
How do I give the background of the dropdown menu here a color? At the moment it is transparent.
If I set the background-color property in .menu a, .menu :visited it works but removes the various background colors of the top level menu.
Thanks!
| SitePoint Sponsor |



Hi,
How do I give the background of the dropdown menu here a color? At the moment it is transparent.
If I set the background-color property in .menu a, .menu :visited it works but removes the various background colors of the top level menu.
Thanks!


.menu li ul{ background:#FFF;} /*fff=white, change to whatever color code you want */
you could also do" .menu li ul{ background:inherit;}
Brilliant ideas, elegant execution.
Graphic Design, Art Direction, Copywriting and Web Design.


Hi,
Just target the nested menu and miss the top level completely.
e.g.
Code:.menu ul ul a{background:red;}Edit:
Just a few seconds too slow with my reply ......
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Bookmarks