On 16/12/2010 6:28 PM, Chetan Crasta wrote:
@Thierry: Happy to help.
the element is taken out of flow, thus float is rendered impotent
@Barney: It doesn't necessarily follow that because the element is out
of the flow, float cannot work. If the spec hadn't disallowed it, it
would be conceivable for position:absolute and float to be used
together to get the combined effect of 5) and 6), that is: a
stretched, right or left aligned element, with text or inline elements
flowing around it.
http://roughtech.com/t/posit.html (corrected)
~Chetan
Hello Chetan,
It not that the spec disallowed it, but rather float is one of the three
positioning schemes [1]. They being:
1. Normal flow.
2. Floats - laid out according to the normal flow, then taken out of the
flow.
3. AP. - removed from the normal flow entirely (it has no impact on
later siblings).
In 9.3.1 Choosing a positioning scheme: 'position' property [2] we see
this for position absolute:
# Absolutely positioned boxes are taken out of the normal flow. This
means
# they have no impact on the layout of later siblings. Also, though
absolutely
# positioned boxes have margins, they do not collapse with any other
margins.
1. <http://www.w3.org/TR/CSS21/visuren.html#positioning-scheme>
2. <http://www.w3.org/TR/CSS21/visuren.html#choose-position>
--
Alan http://css-class.com/
Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/