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
https://forums.phpfreaks.com/topic/24054-table-height-problem/
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
https://forums.phpfreaks.com/topic/24054-table-height-problem/#findComment-111065
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.