简体   繁体   中英

Height auto doesn't working in div inside div

I found many topics but I couldn't find solution for my problem so I started with topic. I have a container with padding top and bottom. Then, I added another inside container. Second included image and content, but if I want to display full content my image will disappear because container doesn't automatically expand height. Here are my HTML code:

http://codepen.io/thehung1724/pen/Fvgxz

Hope anyone can help me out. Thank in advance.

The final generated HTML has a container around your content called contentHolderUnit with a fixed height of 355.64040404040406px . That's why it isn't resizing to show all the content. This is probably being done by whatever "carousel" system you're using, so you should check the docs for that system to find out if you can adjust the height.

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