Float CSS Property
Posted By: Kanika Gupta Published: 14, Jan 2024
Float is yet another important property of CSS used for specifying the position of contents of a webpage. As the name suggests, floating an element means moving an element to the desired position while allowing other elements to wrap around it.
This property is most commonly used to wrap text around images or any inline elements including paragraph, list, button or table.
Values of float property
The most common parameters/values used for this property are
- Left
- Right
- None
- Initial
Syntax
float: value;
- float: left
- float: right
- float: none
- float: initial
- All
- Create Free Website
- Ecommerce Website
- Free Canva PRO
- Google Business Profile
- HTML, CSS
- Web Hosting
- What is performance marketing? A guide for London businesses
21, Aug 2026 - 5 Signs your business needs an SEO agency
17, Aug 2026 - 10 Best small business SEO services in London, UK
11, Aug 2026 - Why businesses in London need a digital marketing agency
06, Aug 2026 - Best digital marketing services in London, UK (2026)
28, Jul 2026 - Top London digital marketing agencies
22, Jul 2026 - Top 7 web development companies in London 2026
17, Jul 2026 - Leading software development company in London 2026
14, Jul 2026 - Top 5 e-commerce development companies in London 2026
07, Jul 2026 - Best website design company in London: complete guide for businesses in 2026 🚀
04, Jul 2026
This property is used to position elements on the left side of the webpage.
Example:
Output:
This property is used to position elements on the left side of the webpage.
Example:
Output:
This property is used to set the floating property of an element to none. The element will not float and will be displayed according to the default value i.e. from left to right.
Example:
Output:
This property is used to position an element to its initial value.
Example:
The element is at first floated to right.
The element is now floated to its initial value – left.
Guiding your business journey