CSS float Property Explained
What the CSS float property does, with an example.
Published November 7, 2026
The CSS float property lets an element be pushed to one side, allowing text/inline content to wrap around it — a legacy layout technique largely replaced by flexbox and grid.
Key points
- Check browser compatibility on a resource like caniuse.com if targeting older browsers
Example
float: left;