Forum Moderators: not2easy

Message Too Old, No Replies

div height

         

Harm

7:09 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



hello, I'm trying to make my div's height to be 100%.
im using xhtml transitional 1.0
html:

<div>&nbsp;</div>

css:
body { height: 100%; width: 100%; }
div { height: 100%; }

and it doesnt work.

btw,
div doesnt have any parrent tags

[edited by: Harm at 7:09 pm (utc) on Sep. 12, 2007]

sifredi

7:46 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



try
html,body{height:100%}

Harm

7:53 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



thanks alot;)