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.
精彩评论