W3C home > Mailing lists > Public > www-style@w3.org > July 2001

Netscape 6 displays images outside of their containers (off topic ?)

From: Peter Foti (PeterF) <PeterF@SystolicNetworks.com>
Date: Tue, 24 Jul 2001 12:06:32 -0400
Message-ID: <A10A983C9DFBD4119F0300104B2EA6B7085E23@ZIPPY>
To: "'www-style@w3.org'" <www-style@w3.org>
Before I get blasted, let me say that this message might be off topic
for this list.  I've tried asking in the newsgroup, but no one replied.
I'm trying to figure out what the correct behaviour is.
I have some images that seem to expand past their containing block in
Netscape 6. On some pages, they will automatically expand past the
containing block, but on others (like the example I'm providing below),
the containing block will expand to include the entire image (despite
the styles). HOWEVER.... if you refresh this page a few times, and then
press the Back button, the container block will suddenly obey the style
rules and the image will go outside of it's block.  I would think the
correct behaviour would be for the  containing block to stretch to
surround the image.

Is this a bug in NS6?
Thanks,
Peter Foti


Sample code (note the image I use is 291x200):

<!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" xml:lang="en" lang="en">
<head>
	<title></title>
	<style type="text/css">
	#container
	{
		width: 15px;
	}

	#highlightstable
	{
		width: 10px;
	}
	</style>
</head>

<body>
<table border="1" id="container">
	<tr>
		<td>
			<table border="1" cellpadding="0"
cellspacing="0" id="highlightstable">
				<tr>
					<td>
<a href="Test.jpg"><img src="Test.jpg" alt="Test" height="200"
border="0" /></a><br /> The image has a mind of its own! But this text
obeys the rules!
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>
Received on Tuesday, 24 July 2001 12:01:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT