Select Chapter ❯
CSS Tutorial
- CSS Introduction
- CSS Syntax
- CSS Insert CSS
- CSS Backgrounds
- CSS Text
- CSS Dimensions
- CSS Border
- CSS Margin
- CSS Padding
- CSS Display
- CSS Positioning
- CSS Float
- CSS Pseudo-Class
- CSS Opacity
- CSS Media Types
CSS3 Tutorial
CSS Float
CSS Float is used to float element horizontally eighter left or right means it can move the element in left or right.
Example of Float
img { float:left; }
Float Values
- float:left;is used to float the element in left side.
- float:right;is used to float the element in right side.
- clear:both;is used to turn off the floating of elements which is after the float element.