0
0
Bootsrapmarkup~5 mins

Sizing utilities (width, height) in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the Bootstrap class w-50 do?
It sets the element's width to 50% of its parent container's width.
Click to reveal answer
beginner
How do you make an element take the full height of its parent using Bootstrap sizing utilities?
Use the class h-100 to set the element's height to 100% of its parent.
Click to reveal answer
intermediate
What is the difference between w-auto and w-100 in Bootstrap?
w-auto sets the width to auto, letting content decide size. w-100 forces width to 100% of the parent container.
Click to reveal answer
beginner
Which Bootstrap class sets an element's height to 25% of its parent?
The class h-25 sets the height to 25% of the parent container.
Click to reveal answer
beginner
How can you set an element's width to 75% using Bootstrap sizing utilities?
Use the class w-75 to set the width to 75% of the parent container.
Click to reveal answer
Which Bootstrap class sets an element's width to 100%?
Ah-100
Bw-100
Cw-auto
Dh-auto
What does the class h-50 do in Bootstrap?
ASets height to 50 pixels
BSets width to 50% of parent
CSets height to 50% of parent
DSets height to auto
If you want an element's width to adjust based on its content, which class should you use?
Aw-auto
Bw-100
Ch-auto
Dh-100
Which class sets an element's height to 25% of its parent container?
Aw-75
Bw-25
Ch-75
Dh-25
What is the effect of the class w-75 in Bootstrap?
AWidth is 75% of parent
BHeight is 75% of parent
CWidth is 25% of parent
DHeight is 25% of parent
Explain how Bootstrap sizing utilities help control element width and height.
Think about how you can quickly set sizes without writing custom CSS.
You got /4 concepts.
    Describe a real-life example where you might use Bootstrap's width and height utilities.
    Imagine building a webpage layout with columns or images.
    You got /4 concepts.