1

On my css menu here My site I can't seem to get the menu to match up on all levels no matter how much I have tweaked the code. I am a CSS newbie so I am likely missing something but when you hover and mouse down there are three different sizes and I want them all to be uniform. I have looked at it in chrome and firebug, but can't find the parent menu to expand to match the hover.

Any suggestions would be greatly appreciated!! Thank you in advance :)

3 Answers 3

1

Your code is totally messed up. For starters dont set the width of the in the submenu. Instead set the width of the whole UL.submenu, and make the inside display:block, so that they will fill thew whole width

Sign up to request clarification or add additional context in comments.

4 Comments

i agree with @dbugger - pretty messy, it would take quite some time to provide you with an answer... i'd start by cleaning everything up: 1/ put each property on it's own line, so you keep an overview, 2/ make sure you never change margin or padding on hover, just set bgcolor + text-decoration - nothing else, 3/ put margin/padding always on the a, never on the li - that should get you in the right direction...
Yeah I got a template and while it has helped a ton by pointing me in right direction some of the CSS is just evil.
Sorry, its too messed up. Delete all the styles from the submenu and start over. It will be better in the long run.
Dont set "width" of anything with "hover", thats a rule you should ALWAYS follow.
0

change this in your css:

#menu2 li li a, #menu2 li li a:link, #menu2 li li a:visited {
    color: #FFFFFF;
    float: none;
    margin: 0;
    padding: 0 0 0 15px;
    width: 160px; //this is the change (width decreased)
}

Hope this helps.

Comments

0

It's not difficult to implement a hover menu using CSS. It works in all modern browsers, but doesn't work in IE6 as it doesn't support :hover on li tags.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.