clear property
Specifies the position of the element relative to floating objects.
JavaScript page for this property: clear. You can find other example(s) there. |
Possible values:
One of the following values:
Prohibits to show floating objects on any side of the object. | |||||||
Prohibits to show floating objects on the left side of the object. | |||||||
Default. Allows to show floating objects on both sides of the object. | |||||||
Prohibits to show floating objects on the right side of the object. |
Default: none.
Example HTML code 1:
This example illustrates the use of the clear property:
|
||||
<head> <style> .floating { float: left; background: cyan; height: 30px; } .clear { clear: left; } </style> </head> <body> <i class="floating">Floating element</i> <div class="clear"> This sentence forbids floating elements on the left side. </div> <br /><br /> <i class="floating">Floating element</i> <div> This sentence does not forbid floating elements on the left side. </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
address, blockQuote, caption, center, col, colGroup, dd, dir, div, dl, dt, fieldSet, form, H1, H2, H3, H4, H5, H6, isIndex, legend, li, listing, marquee, menu, ol, p, plainText, pre, table, textArea, tr, ul, xmp
Related pages:
External links:
User Contributed Comments