Example
This style rule prevents all pre elements
in an HTML document from being adjacent
to a previously floated box:
pre {
clear: both;
}
When clear is specified for a run-in box, it applies to the block box to which the
run-in box eventually belongs.
See Floating and Clearing (p. 180) for more information about the behavior of cleared
elements.
SPEC
version initial inherited
CSS1 none NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
Layout Properties
The Ultimate CSS Reference 272
Value
left The value left adds space above the element??™s generated box, if necessary,
to put its top border edge below the bottom edge of any left-floating boxes
previously generated by elements in the same block formatting context.
right The value right adds space above the element??™s generated box, if necessary,
to put its top border edge below the bottom edge of any right-floating boxes
previously generated by elements in the same block formatting context.
both The value both adds space above the element??™s generated box, if necessary,
to put its top border edge below the bottom edge of any floating boxes that
were previously generated by elements in the same block formatting context.
Pages:
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414