0

I created a dropdown menu for my Wordpress website. In this jsfiddle you can find the HTML and CSS code: http://jsfiddle.net/N5H4c/

see jsfiddle

I have a CSS problem there. I created the dropdown menu but when I hover 'Menu item One' it stretches and gains more width. That should not be. The sub menu items can be larger but the menu item itself shouldn't change the size. Further there is this yellow background everywhere around it when I hover the menu and I would like to remove it.

2
  • 2
    "Links to jsfiddle.net must be accompanied by code." Commented Apr 24, 2013 at 19:53
  • The code is present in jsfiddle. Commented Apr 24, 2013 at 19:57

2 Answers 2

2

You need to update

#menu ul {
    position: absolute;
    background: #f7e600;
}

check jsfiddle

http://jsfiddle.net/N5H4c/5/

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

Comments

2

Add

position: absolute;
top: 38px; // your menu's height
left: 0;
white-space: nowrap;

to #menu ul : http://jsfiddle.net/N5H4c/2/

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.