Name

clear — NN n/a IE 4 DOM 1

Synopsis

Read/Write

Tells the browser how to treat the next line of text following a BR element if the current text is wrapping around a floating image or other object. The value you use depends on the side of the page to which one or more inline images are pegged and how you want the next line of text to be placed in relation to those images. The DOM working draft includes methods to get and set the clear property of a BR object.

Example

document.all.specialBreak.clear = "all"

Value

Case-insensitive string of any of the following constants: all | left | right.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.