The
float
property specifies how an element should float.Note: Absolutely positioned elements ignore the
float
property!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.Next Section
5.2 PositioningCopyright © 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.