Closed Bug 4964 Opened 26 years ago Closed 26 years ago

Unexplained whitespace above floating element

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: trajano, Assigned: buster)

Details

I am trying to figure out why there is an extra white space before a floating P. i.e., <p style="float:right/left"> The other odd part is if I add "border:1px solid black" to the style, it renders the box all the way to where it is supposed to be, but it still has that white space. I am using IE5 as something to compare with. It seems to make sense not to have a gap on top. I don't think this is the expected behaviour, is it? Sorry that this is a long snippet: <html> <head> </head> <body> <p style="border-bottom: 1px solid; margin: 0;"><a href="./">NetSpace</a> : Document Group</p> <!--webbot bot="Include" U-Include="_private/doc_group1_bar.html" TAG="BODY" startspan --> <div style="font-family: sans-serif; font-size: x-small; color: white; width: 150px; background-color: rgb(0,0,128); background-repeat: repeat-y; background-image: url('images/cbg.gif'); float: right; margin-left: 5px; margin-right: 0px; margin-top: 0; margin-bottom: 0; padding-top: 0px; padding-left: 15px; padding-right: 2px; padding-bottom: 10px; background-position: top left "> <p>TITLE? maybe an image..</p> <p><a href="document.html">a document</a><br> testing 123 2 3123<br> 123 12311231 23123123 12311231 23123123 1231</p> </div> <div style="padding-left:10px;padding-right:10px"> <h1 style="margin:0">This is a document group</h1> <p>fithos luces ciros venosec testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf testing 123 dsalfjsaldfj lsadkjflkdsafj slkdajflk dsajf test</p> </p> </body> </html>
Assignee: troy → kipp
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
P tags, in the ua.css, have a top and bottom margin for "1em". Hence you *should* be seeing that whitespace. If you don't want margins, set them to zero using "margin: 0".
Status: RESOLVED → REOPENED
Status: REOPENED → ASSIGNED
Resolution: INVALID → ---
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → INVALID
Somehow this got reopened with no log message indicating why; fixing it back to invalid...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.