html - Why won't my <UL> expand to wrap the <LI> elements it contains? -
i'm using wordpress. have menu built list.
basically, sample this:
<ul> <li>frontpage</li> <li>menuitem</li> <li>parentmenuitem <ul> <--- wont adjust height fit children <li>menuitemchild</li> <li>menuitemchild</li> </ul> </li> <li>menuitem</li> </ul> now parentmenuitem won't expand , cover children background , border. cant figure out why. way have been able make cover giving fixed height.
change height of ul 100% auto:
height: auto; the reason ul height small because using 100%, means take on height of parent. not mean take maximum space available, nor mean take on sum of height of children. since parent has height: 33px, ul has height.
Comments
Post a Comment