Jump to content
Sign in to follow this  

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?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...