You’re viewing an archive of outdated material. Visit The Web Standards Project’s updated site to learn about our current mission.
The following examples of incorrectly supported floating elements are taken from section 4.1.4 of the World Wide Web Consortium's CSS1 Test Suite.
IE 4.5 does not fail all of the tests on the W3C test page, in particular it supports floating of images better than it does floating of block elements.
This is a left-floating paragraph (first in source).
This is a right-floating paragraph (second in source).
MacIE incorrectly puts a space above the floating paragraph that occurs first. (The margin is explicitly set to 0.) The left floating paragraph should touch the top of the purplediv
just as
the right floating one does. The right floating
paragraph should stay entirely within the top and side borders of
the div
, but it does not. For some reason, it sticks out
of the right side of the div
.
This is a right-floating paragraph (first in source).
This is a left-floating paragraph (second in source).
This example is similar to the previous one, except the right float comes first. This shows that the extra space on top accompanies the first float, but the additional movement to the right occurs on right-floating paragraphs.This is a left-floating paragraph (first in source).
This is a right-floating paragraph (second in source).
In this example, MacIE shows a very serious problem with floats. Floating should be a safe technique - when implemented correctly, floats can never overlap, and authors do not need to worry about overlap in unusual situations. However, MacIE does not displace a right-floating element down when this displacement is needed to separate it from a left-floating element. Instead, these elements overlap. Furthermore, MacIE begins the text in the normal flow where there is no room for it, putting one word per line until the floats are complete.