Forum Moderators: not2easy

Message Too Old, No Replies

box height percentage inside absolute positioned box

         

dmd_anfini

4:28 am on Jul 1, 2010 (gmt 0)

10+ Year Member



Hi there, I'm having problems in IE7 with this simple code


<div style="position:absolute;top:0px;right:0px;bottom:0px;left:0px;background-color:green;">
<div style="height:100%;background-color:blue;">
bla
</div>
</div>


in firefox and chrome it displays correctly, but it seems IE7 cant handle boxes with height percentage inside a box with absolute position

is there a way to solve this? a hack perhaps?

Dijkgraaf

9:54 pm on Jul 1, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This thread here [webmasterworld.com ] is very similar