开发者

Dropdown Nav bar having automatic width of contents

I have a wordpress site with a basic CSS dropdown menu, and seems the contents of the ul ul are rather large. I have put the ul ul at a stat开发者_JS百科ic width, but I would love to have the width be as long as the title at all times. Seems width:auto isn't working. Hoping a guru can hold my hand.

http://bit.ly/fC7zT7

Under Our Products


When styling list menus, always style the A tag. Don't style the LI tag (other than float, when needed).

Also, add display:block you your menu A tags. You'll probably need to tweak your padding/margins a bit bit this will make them all the same width.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜