Name

CLEAR — NN all IE all HTML 3.2

Synopsis

CLEAR=”constant"

Optional

The CLEAR attribute 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.

This attribute is deprecated in HTML 4.0 in favor of the BR {clear: setting } style sheet rule in CSS2.

Example

<BR CLEAR="left">

Value

Navigator and Internet Explorer accept three constants: all | left | right. HTML 4.0 includes what should be the default value: none. This value is listed in IE 3 documentation, but not for IE 4. You can set the property to none and it either responds to the value or ignores it (yielding the same results).

Default

None.

Object Model Reference

IE

[window.]document.all.elementID.clear

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.