Click here to get back home

IE7: Table in Table

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
IE7: Table in Table Sebastian Widmann 11-24-2006
Posted by Sebastian Widmann on November 24, 2006, 12:56 am
Please log in for more thread options


Hi!

My html code is posted below. Firefox and IE6 shows the page correctly,
but IE7 has a big problem with the height of the inner table. If I
switch back from XHTML to HTML, IE7 also shows the page correctly. But I
want XHTML.

What do I have to change, so that IE6, IE7 and Firefox shows an inner
table with 100% of height? I don't want divs, so please do not answer:
use divs.


Thanks in advance, best regards
Sebastian


<!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=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
<!--
body,html {width: 100%; height: 100%; padding: 0; margin: 0;}

-->
</style>
</head>

<body>
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;
height: 100%;">
<tr>
<td>&nbsp;</td>
<td align="center" valign="top" style="background-color: #0000FF;
width: 900px;">
        <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;
height: 100%">
<tr>
<td style="height: 30px; background-color:#00FF00;">&nbsp;</td>
</tr>
<tr>
<td style="height: 180px;">&nbsp;</td>
</tr>
<tr>
<td style="height: 30px; background-color:#00FF00;">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="height: 30px; background-color:#00FF00;">&nbsp;</td>
</tr>
</table></td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>


Similar ThreadsPosted
[newbie] client side jscript for a table inside a table March 24, 2005, 8:01 am
How to eliminate space between table border and table contents? December 6, 2005, 1:22 am
How do you make a table background cover whole table August 3, 2004, 9:49 pm
Table Within Table with colspan and width=100% August 15, 2005, 10:41 am
vs.
when and where
March 10, 2007, 4:47 am
Table border (outside only) August 6, 2004, 8:16 am
Resizable table October 14, 2004, 8:13 pm
Bug im IE? DOCTYPE und table October 19, 2004, 2:57 am
Doing without table height January 6, 2005, 4:38 pm
table formatting February 6, 2005, 3:06 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap