Jump to content


table height problem...

  • Please log in to reply
2 replies to this topic

#1 youwh

  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 16 October 2006 - 04:06 AM

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>

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 16 October 2006 - 02:37 PM

What doesn't work about it?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 anatak

  • Members
  • PipPipPip
  • Advanced Member
  • 406 posts
  • LocationJapan, Fukuoka prefecture, Kitakyushu City

Posted 19 October 2006 - 06:18 AM

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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users