Jump to content


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


table height problem...

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

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<style type="text/css">
margin: 0;
padding: 0;
border: none;

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


Share this post

Link to post
Share on other sites
What doesn't work about it?

Share this post

Link to post
Share on other sites
the only thing that may help you is that
table does not have height for attribute
<table height="100%">

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

Share this post

Link to post
Share on other sites


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.