Interview Question

What is clear property?

clear moves a box past preceding floats on selected sides.

💡 Concept ✅ Quick Revision 🎨 CSS

Answer

The clear property controls whether a box may appear beside earlier floats. • It can require clearance on the inline-start, inline-end, or both sides. • Clearance moves the box below relevant floats. • It does not remove or disable the float itself.

💡 Simple Example

.next-section { clear: both; }

⚡ Quick Revision

clear moves a box past preceding floats on selected sides.