The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Absolute positioned children collapsing parent Reply To: Absolute positioned children collapsing parent


Just like @Paulie says, we’d need a little more information — why are the images positioned absolute? Is it because it’s a carousel/slider? In that case, the parent should be given a height regardless, and/or each image you have in there should have the same height.

Apart from using JS to determine the height, you could also put an invisible image in the parent (not positioned absolute) that has the same height as the other images. But again, that only works if all images have the same dimensions.