Closed
Bug 17318
Opened 26 years ago
Closed 26 years ago
Floating div behavior questionable
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: mozilla, Assigned: buster)
Details
I got this down to the smallest test case possible, and surrounded everything
by different color borders to let you know exactly what's going on. Make sure
to check this out in IE5 because it seems to do the right thing as far as I
understand what it should do.
Basically, I float one div to the right of another, and in Mozilla it fits
width of the div to the length of the longest word and "puts a newline" after
every word so you wind up with a bunch of words scrolling down the right side
of the web page. In IE5 it automatically fits the div to the length of the
whole string. If I put an absolute width for the floated div that is as long as
the length of the whole string then it looks in Mozilla as it does in IE5.
Thanks.
Keith
A simple test case follows:
<html>
<head>
<title>Div test case</title>
</head>
<body>
<div style="border: thin solid black; float: right; width: auto; margin-right:
5%; text-align: right">
Today is Wednesday, October 27 1999
</div>
<div style="border: thin solid red">
what's new
</div>
</body>
</html>
We are doing, believe it or not, what the css2 spec says (unlike IE). However,
there is some disagreement about what value to pick when the situation arrives.
That already has an open bug so I'm duping this one. There is a much much older
bug on this issue that was long ago closed if you care to do some digging.
*** This bug has been marked as a duplicate of 12750 ***
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•26 years ago
|
||
Marking as a duplicate of 12750.
You need to log in
before you can comment on or make changes to this bug.
Description
•