The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Outer div can't has its own height
I have a outer div that calls #slide and it has some image in it. Each images have position: absolute; for resizing themselves inside of the #slide div.
The problem is when I set like that, the #slide‘s height becomes 0 then I can’t put the contents below the div.
Is there any ways to fix this problem?
Try the “padding-bottom hack” on .slide-l-quarter. 25% should do it. https://www.smashingmagazine.com/2013/09/responsive-images-performance-problem-case-study/#the-padding-bottom-hack