Jump to content

Div Height Not Expanding To Td Height When Resizing The Window


Recommended Posts

<style type="text/css"><!-- html, body { width:100%; height:100%; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}.main{ width:100%; height:100%; } .text { font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; text-align:left; }--></style><body> <table align="center" bgcolor="#F2FFF2" class="main"> <tr> <td width="100%" bgcolor="#EBEBEB" valign="top"> <div id="container" style="width:100%;overflow-y:auto;height:100%;min-height:220px;background-color:#FFFFFF;"> <div id="Data" style="width:99%;" class="text" ><br> </div></div> <font color="#000099" size="-2" face="Times New Roman, Times, serif"><span id="unavailTxt"></span></font> </td> </tr> <tr> <td colspan="1"> <div id="subData"> <textarea id="subText" rows="1"style="overflow-y:auto;width:99%"></textarea> </div> </td> </tr></table>
When i give <td height=100%> of <div id="container"> ,div is automatically expanding to fill the height of <td>,but only in firefox,In ie it fill the enire window viewport,so some element in the window out of vewport.when i don't give <td height=100%> this not all expanding in accordance with window resize.can anybody help me?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...