The Float Property Flashcards
1
Q
What is the primary use case for floats?
A
Getting text to wrap around an image (or some other container).
2
Q
What do floats do?
A
Specifies how an image should float and takes content out of normal flow.
3
Q
What happens when you have more than one floated element?
A
The elements will continue to horizontally stack next to one another, as long as there is space in the parent container.
If there is not enough space, they will go to the next line.
4
Q
What does the clear property do?
A
The clear property specifies on which sides of an element floating elements are not allowed to float.