Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Nested Table Not Showing

1 view
Skip to first unread message

Steve DeGroof

unread,
Apr 13, 2004, 4:03:31 PM4/13/04
to
I noticed a problem with a web site where some text didn't display in
Opera but did show in IE. I took the source of the web page and stripped
out all of the junk and came up with the following HTML. Two questions:
1. Is this valid HTML? There are two tables in the same cell of a third
table. It's a bit odd but it doesn't appear to be illegal.
2. How should something like this render? I would've expected the "hidden"
table to have a minimum width based on the text in its cell. It appears
to have a zero width instead.

I can make the "hidden" table partially visible by reducing the width of
the "visible" table. I can make it totally visible by adding an align=left
to it or removing the align=left from the other.

<html>
<body>
<table>
<tr>
<td>
<table align=left width=300>
<tr>
<td>
this text is visible
</td>
</tr>
</table>
<table>
<tr>
<td>
this text is hidden
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Rijk van Geijtenbeek

unread,
Apr 14, 2004, 9:05:10 AM4/14/04
to
On 13 Apr 2004 13:03:31 -0700, Steve DeGroof <deg...@mindspring.com>
wrote:

> I noticed a problem with a web site where some text didn't display in
> Opera but did show in IE. I took the source of the web page and stripped
> out all of the junk and came up with the following HTML. Two questions:
> 1. Is this valid HTML? There are two tables in the same cell of a third
> table. It's a bit odd but it doesn't appear to be illegal.

Yep, it is valid.

> 2. How should something like this render? I would've expected the
> "hidden" table to have a minimum width based on the text in its cell. It
> appears
> to have a zero width instead.

Opera had trouble calculating the needed width for the outer table. This
will be fixed in Opera 7.50.

--
The Web is a procrastination apparatus: | Rijk van Geijtenbeek
It can absorb as much time as | Documentation & QA
is required to ensure that you | Opera Software ASA
won't get any real work done. - J.Nielsen | mailto:ri...@opera.com N

0 new messages