- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- CSS Float
CSS Layout
CSS Float
The CSS Float property is used to position an element to the left or right side of its container, allowing surrounding content to wrap around it.
Float was traditionally used for creating page layouts before Flexbox and Grid became popular. The supporting concepts are explained in Normal Flow and Multi-column Layout.
Today, it is commonly used for:
- Wrapping text around images
- Simple content alignment
- Legacy website maintenance
Syntax
CSS Float Syntax
css
selector {
float: value;
}