Locked lesson.
About this lesson
Understanding Float left, Float right, and the clear statement.
Exercise files
Download this lesson’s related exercise files.
Float and Clear.docx58.7 KB Float and Clear - Solution.docx
58.8 KB
Quick reference
Float and Clear
Positioning things on the left or right is done using float.
When to use
Anytime you want to position something on the left or right, use float.
Instructions
To position something on the left:
float: left;
To position something on the right:
float: right;
To clear things after floats:
clear: left;
clear: right;
Hints & tips
- You can float left with float: left;
- You can float right with float: right;
- You need to clear things after floating with clear: left; or clear: right;
Lesson notes are only available for subscribers.