Locked lesson.
About this lesson
Learn how to make floating easier with Inline-Block
Exercise files
Download this lesson’s related exercise files.
Inline-Block.docx58.9 KB Inline-Block - Solution.docx
58.9 KB
Quick reference
Inline-Block
When you want to float something but don't want to clear it, use inline-block.
When to use
Anytime you can't clear a float, use an inline block.
Instructions
To use inline block, use the display property:
display: inline-block;
Hints & tips
- Inline-block doesn't need to be cleared like floats
- display: inline-block;
- you can use height and width in classes with inline-block;
Lesson notes are only available for subscribers.