Sent by Shu Chow on 16 February 2002 21:09
Hello. I just joined this list, and I caught the tail end of the
discussion on a mac IE 5 offset bug. I've encountered something odd
and I'm wondering if this is the discussed bug.
Let's say I have a div that's relatively positioned with a left of x
pixels, and I add several paragraphs (<p></p>) in the div. On Mac IE
5 (classic and X), the *second* and beyond paragraphs will inherit
the offset. In other words, if the div is positioned 100px, the
second, third, etc. paragraphs will be moved over 200px.
I thought offsets weren't inherited? Netscape 6 seems to align all
subsequent <p> at 100px.
Thanks for any insight anyone can give on this.
Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<style>
div#content {
position: relative;
width: 60%;
left: 105px;
top: 100px;
font-family: Verdana,Tahoma,Helvetica,Arial,san-serif;
font-size: 11px;
}
</style>
</head>
<body>
<div id="content">
<p>
Hello!
</p>
<p>
Is this paragraph moved over?
</p>
<p>
Yes!
</p>
<p>
(I thought offsets weren't inherited!)
</p>
</div>
</body>
</html>