May 2003
Intermediate to advanced
480 pages
10h 9m
English
Setting a clear property on an element lets you specify that it should appear below any floating elements that would normally cut into it. You can specify that the element should be clear of left-floated elements, right-floated elements, or both.
Inherited: No
See also: Section B.36float
left, right, none, or both.
Initial value: none
CSS Version: 1
Works in all CSS-compatible browsers, including Internet Explorer 4 or later, Netscape 4 or later, and Mozilla browsers.
This style rule ensures that the element with ID footer will be clear of any floating elements above it in the page:
#footer {
clear: both;
}
Read now
Unlock full access