Forum Moderators: not2easy

Message Too Old, No Replies

Height: 100%

...doesn't really work

         

Emperor

9:25 pm on Jul 28, 2005 (gmt 0)

10+ Year Member



Hi guys,

Basically I want a box to take up the whole browser window minus the padding:

<body>
<div style="padding: 16px;">
<div style="height: 100%; border: 1px solid #000000;">
this only takes up one line vertically :(
</div>
</div>
</body>

Any ideas?

kiwidesign

9:46 pm on Jul 28, 2005 (gmt 0)

10+ Year Member



Hi,

As far as I have found the width=100% works but height=100% does not. I'm not sure why this is hopefully someone else will jump in and let us know why and offer a solution : )

PyroLuna

11:59 pm on Jul 28, 2005 (gmt 0)



you should put a height=100% on the body and html-tags as well.