Account
Categories
Shobha
Shobha
The best way to predict the future is to invent it

How can you clear floated elements using CSS?

To clear floated elements, apply the clear property to an element, specifying left, right, or both to control which floats should be cleared, ensuring the next element starts below the floated content.. For example, clear: both; can be applied to an element to ensure that it doesn’t flow around any preceding floated elements, restoring the normal document flow.