Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS clear definition

Syntax

clear: none | left | right | both

Description

The clear property specifies if it allows floating objects at the sides of an element. Default is none.

Example

[Try this example yourself]
<style type="text/css">
img.right
{
float: left;
clear: right;
}
img.left
{
float:left;
clear:left;
}
</style>

<img class="right" src="http://www.glubase.com/images/glubase2.gif" width="200" height="130" />
<img class="right" src="http://www.glubase.com/images/glubase2.gif" width="200" height="130" />

<br />

<img class="left" src="http://www.glubase.com/images/glubase2.gif" width="200" height="130" />
<img class="left" src="http://www.glubase.com/images/glubase2.gif" width="200" height="130" />

Output


  • Comments

No comments added.