The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › 100% height again
Hi all,
I didn’t use to have any problems with this but now I do, can’t make it work in anything but IE7 – the irony!
The .container works just fine it seems but I can’t get the .box to get it as well. What am I missing?
Thanks a lot, Oskar
Hm, just found this:
and two nested divs <body> <div><div> </div></div> </body>
The result is that inner div is not 100% of body.
The reason is because ‘height’ is not explicitly defined for the outer div, so the percentage in the inner is calculated to ‘auto’.
Which actually makes sense. Guess I need to rethink my html-layout.