Forums

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

Home Forums CSS Parent div won't resize vertically to take account of child divs Reply To: Parent div won't resize vertically to take account of child divs

#192095
Paulie_D
Member

Absolutely positioned elements are taken out of the flow and do not count towards their parent’s height. That’s the point of absolute positioning

Positioning is a very poor way of laying out a website and is very unforgiving and definitely unresponsive.

There are much better methods – http://learnlayout.com/

I don’t want to start using any floats etc.

I don’t know why, it’s a perfectly acceptable layout method but there are others.

They all have their issues but using positioning is intended (at least these days) for specific effects not supported by the ‘standard’ layout methods.