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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -