css - Getting the height of a relative div container -


i have div contains lots of child div elements. container div has position attribute set relative, , child elements have position attributes set absolute. each of has positional data set using top , left. wish add footer after container, it's height being registered 0px. there way set it's height expand encompass child elements (via css only, no javascript)?

css specs says:

in absolute positioning model, box explicitly offset respect containing block. [1]

so, css can't expand height of container encompass absolutely positioned div's

[1] http://www.w3.org/tr/css2/visuren.html#absolute-positioning


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -