W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2008

[CSS2.1] float positioning rules

From: Robert Stam <robert@tallcomponents.com>
Date: Wed, 12 Nov 2008 03:55:50 -0600
Message-ID: <40BA97F694BF944EBB093147C342379004DBCE2B@34093-EVS2C2.exchange.rackspace.com>
To: <public-css-testsuite@w3.org>
Cc: <fantasai.lists@inkedblade.net>

Hi all / Fantasia,

According to the rules that govern the behavior of floats (section
9.5.1), we would expect the floating div, in the example below, to be
positioned at the same top position as the paragraph. It satisfies rule
8 (placing a floating box as high as possible) and violates none of the
rules. This seems awkward, but also differs from other major

Can anybody clarify on this matter? Are there any anonymous boxes
created around floats to ease the formatting?

Sample XHTML:
<html xmlns="http://www.w3.org/1999/xhtml">
    <style type="text/css">
            width: 50pt; 
            height: 50pt;
            border: thin solid black; 
            float: left;     
    <p>Text</p><div class="yellow"></div>

Thanks in advance.

Robert Stam
Received on Wednesday, 12 November 2008 09:56:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:13 UTC