View Single Post
Old 11-13-2012, 10:18 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello sixrfan,
You are not being specific enough in your CSS. You need to style the dropped ul differently than the ul menu the user sees before he mouses over anything.

I didn't look very hard for a hover attribute that changes your .sub-menu from display: none; to block or something visible. Your use of !important would likely override it anyway.

You use absolute positioning .sub-menu but you don't position it.
Your CSS has
Code:
#menu li {
/...
    display: inline;
.../
This makes all li's inline, even though you don't want your ul li ul li inline.



Look at this simple CSS only dropdown menu for ideas.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

Last edited by Excavator; 11-13-2012 at 11:52 PM.. Reason: re-arranged a sentence
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
sixrfan (11-13-2012)