Forums

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

#267852
Scott M
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.