Is there a way to make absolutely positioned divs expand the container?

use*_*623 6 html css

I have html template - div#container inside body, and some absolutely-positioned divs in container w/o fixed height. Is there a way to expand container to 100% height of page?

Here is an image demostrating my problem: http://habreffect.ru/files/4f3/54ad48420/q.png

I understand, that absolutely positioned divs are "invisible" for container, but unfortunately i got browser window expanded. The problem is, that i can't make body to fit 100% of page, and if I make height:100% of body (and html) it will fit 100% of window height (my is about 900px), but not a page height.

Plz sorry if question is really stupid.

Ric*_*lli 4

您在使用资源管理器时会遇到问题(不记得哪个版本),但您可以设置

left:0;
right:0;
top:0;
bottom:0;
Run Code Online (Sandbox Code Playgroud)

展开尺寸已设置的容器内的绝对定位元素(在容器中或在父级中)