0
0
Bootsrapmarkup~5 mins

Float and clear utilities in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the Bootstrap class .float-start do?
It makes an element float to the left side of its container, similar to CSS float: left;.
Click to reveal answer
beginner
How do you clear floats in Bootstrap using utility classes?
Use the <code>.clearfix</code> class on a container to clear floated child elements, ensuring the container expands to contain them.
Click to reveal answer
beginner
What is the difference between .float-start and .float-end in Bootstrap?
.float-start floats an element to the left, while .float-end floats it to the right, respecting text direction.
Click to reveal answer
intermediate
Why is clearing floats important in web layouts?
Clearing floats prevents parent containers from collapsing when their child elements are floated, maintaining proper layout structure.
Click to reveal answer
intermediate
How does Bootstrap's <code>.clearfix</code> class work under the hood?
It uses a CSS pseudo-element ::after with content: "", display: table, and clear: both to clear floats.
Click to reveal answer
Which Bootstrap class floats an element to the right?
A.float-end
B.float-start
C.float-right
D.float-left
What is the purpose of the .clearfix class in Bootstrap?
ATo float elements
BTo add margin
CTo clear floated elements inside a container
DTo hide elements
If you want an element to float left in Bootstrap, which class do you use?
A.float-end
B.float-start
C.float-left
D.float-clear
What CSS property does .clearfix use to clear floats?
Aposition: relative
Bfloat: none
Cdisplay: none
Dclear: both
Which of these is NOT a Bootstrap float utility class?
A.float-center
B.float-end
C.clearfix
D.float-start
Explain how to use Bootstrap float utilities to position elements and why clearing floats is necessary.
Think about how floating affects layout and how Bootstrap helps manage it.
You got /4 concepts.
    Describe what happens visually when you apply .float-start to an element and do not clear the float in its container.
    Imagine a box inside a container that shrinks unexpectedly.
    You got /4 concepts.