2 Minute question - HTML / CSS If div within div expands expand parent div
Posted
by Ozaki
on Stack Overflow
See other posts from Stack Overflow
or by Ozaki
Published on 2010-06-17T06:18:05Z
Indexed on
2010/06/17
6:23 UTC
Read the original article
Hit count: 181
I have a setup lets say like follows:
<div id="nav">
<div id="innernav">
//With dynamic content here.
</div>
</div>
I am running a script that sizes #nav to the size of the browser window in height. But sometimes my dynamic content is now getting bigger than the height of the window.. Is there a way I can enforce that when #innernav exceeds #nav that #nav will increase in size?
© Stack Overflow or respective owner