What Is The To Use “float” Property In CSS?

Float in CSS

Float property is used to allow an HTML element to be positioned horizontally. Float property can take the values either “left” or “right”. For example,

h1, h2,div1,div2
{
 float: right; 
}
h3, h4,div3,div4
{
 float: right; 
}        

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *