Float
Category:CSS Properties
Float
The Float
property places an element on the left or right side of the screen and allows text and other elements to wrap around it.
Examples
Setting an image to float to the right.
img {
float: right;
}
Syntax
float: value;
Tips
- The float's default value is
none
(no float); the element will follow the normal flow of the page. - The float property can be used for web page layouts and wrapping text around images.
Additional Information
For more information, see http://www.w3schools.com/cssref/pr_class_float.asp.
Found a bug in the documentation? Let us know at support@code.org.