Image Alignment
It facilitates easy alignment of images within text, ensuring seamless integration.
.img-align-left {
float: left;
margin-right: 10px;
}
What is the use of the float Property in CSS ?
The ‘float’ property in CSS is used to align elements horizontally within their container. It enables elements to be shifted to the left or right, allowing text and other elements to wrap around them. While originally designed for layout purposes, the ‘float’ property has been largely replaced by more modern layout techniques like Flexbox and Grid. Some uses are as: