Jump to content

table height problem...


youwh

Recommended Posts

i hav a table height with 100% seperated into 3 row. top and bottom with 100px heihgt. but middle free size.
the codes work well in firefox. but in ie it didnt. how can i fix the problem :s done many research on the height thingy problem. but seems like ie6 jus doesnt understand the code.

see the code for a better understanding of my problem. TQ

[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<style type="text/css">
<!--
html,body{
margin: 0;
padding: 0;
border: none;
font-family:arial,sans-serif;
height:100%;
}
-->
</style></head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="100" align="center" valign="top" bgcolor="#0099CC">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#330099">&nbsp;</td>
  </tr>
  <tr>
    <td height="100" bgcolor="#000000">&nbsp;</td>
  </tr>
</table>
</body>
</html>

[/code]
Link to comment
Share on other sites

the only thing that may help you is that
table does not have height for attribute
<table height="100%">
http://w3schools.com/tags/tag_table.asp

I am not sure what do you want to do.
Do you want a table with a minimum height ?

If you put data in your middle cell
<td bgcolor="#330099">&nbsp;</td>
doesn't your table expand ?

kind regards
anatak


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.