简体   繁体   中英

CSS min-height isn't working

I have an dropdown menu, for an webshop. But whenever i add more items then there should be, the box isn't getting larger, Simple question huh? the answer is "min-height". But here's the problem! It isnt working. I've been using it for a long time now, and this is the first time it doesn't work. Are there any specific things i need to know?

On line 43 in your CSS, you need to set the height to auto , which is being inherited from line 16, as part of the menu's class declaration.

Here is the full working coded-up example that I've just done for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM