The clear property specifies which side(s) of an element other floating elements are not allowed.
Syntax: clear: none|left|right|both|initial|inherit;
<p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
<p class="clear">This is also some text. This is also some text. This is also some text. This is also some text. This is also some text. This is also some text.</p> </body> </html>
Syntax: clear: none|left|right|both|initial|inherit;
<!DOCTYPE html>
<html>
<head>
<style>
img
{ float:left; }
p.clear { clear:both; }
</style>
</head>
<body>
<img src="logocss.gif" width="95" height="84" />
<html>
<head>
<style>
img
{ float:left; }
p.clear { clear:both; }
</style>
</head>
<body>
<img src="logocss.gif" width="95" height="84" />
<p class="clear">This is also some text. This is also some text. This is also some text. This is also some text. This is also some text. This is also some text.</p> </body> </html>
Comment