Home › Forums › CSS › Absolute positioned children collapsing parent › Reply To: Absolute positioned children collapsing parent
March 4, 2018 at 3:35 pm
#267852
Participant
I realize this is too late for the OP, but for others who may come across this, here’s a solution:
Instead of position:absolute
for the child elements , you can hide them with display:none
. This way, you can avoid the collapsing parent and then just show the one element you need when you need it with display:block
.