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.
To use inline block, use the display property:
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.