Prev | Current Page 401 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

158) to a floated element
?–  don??™t support the value inherit
In Firefox versions up to and including 2.0, a floated box appears below an
immediately preceding line box. A left-floated box with a right-floated child and a
computed width of auto expands to the width of the containing block.
271 Layout Properties
In Opera up to and including version 9.2, if the computed width of the floated box
is auto and it has floated children, its width is computed as if the floats don??™t wrap
and aren??™t cleared.
Other Relevant Stuff
clear (p. 271)
prevents a box from being adjacent to floated boxes
clear
clear: { none | left | right | both | inherit } ;
This property specifies which sides of
an element??™s box (or boxes) can??™t be
adjacent to any floated boxes. This
property can clear an element only from
floated boxes within the same block
formatting context (p. 164). It doesn??™t
clear the element from floated child
boxes within the element itself.
The clearance is achieved by adding
space above the top margin of the
element, if necessary, until the top of the element??™s border edge is below the bottom
edge of any boxes floated in the specified direction or directions.


Pages:
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413