Home › Forums › CSS › Absolute positioned children collapsing parent › Reply To: Absolute positioned children collapsing parent
April 29, 2014 at 4:02 am
#168839
Senff
Participant
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.