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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -