1️⃣

5.1 Floating

The float property specifies how an element should float.

Note: Absolutely positioned elements ignore the float property!

image

Note: Elements after a floating element will flow around it. To avoid this, use the clear property.

CSS clear Property

The clear property specifies on which sides of an element floating elements are not allowed to float.

image
image

Next Section

2️⃣
5.2 Positioning
⚖️

Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.