Closed Bug 1233 Opened 26 years ago Closed 26 years ago

BR tags and margins

Categories

(Core :: Layout, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: kipp, Assigned: buster)

Details

BR tags in navigator look alot like margins. In fact, the presence of a BR will
cause the object that follows top-margin to be collapsed with the vertical
distance applied by the BR. (Examples include <BR CLEAR=ALL><P>)
java.sun.com exhibits this behavior (see j:/html/640-5.html)
Status: NEW → ASSIGNED
I don't think BR tags should collapse...and I don't think they do in IE.
The BR element should not be treated as a special case. It is an element just
like any other (albeit empty, like <IMG> and <HR>).

You should simply give it its behaviour using CSS:

   BR:before { content: "\A"; }

This would result in the solving of all margin collapse issues, since it would
then act identical to all other elements.

See also bug #2590.
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
This was mostly a note to myself about how one might treat br clear=... I don't
need the note anymore.
Status: RESOLVED → VERIFIED
Revised delivery date - 07/14
Sorry error - The revised delivery date is 07/21
No idea what you're talking about, but it probably doesn't belong on this bug.
You need to log in before you can comment on or make changes to this bug.