0
0
Bootsrapmarkup~5 mins

Button sizes in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What class do you use in Bootstrap to make a button larger?
Use the class btn-lg to make a Bootstrap button larger than the default size.
Click to reveal answer
beginner
How do you make a Bootstrap button smaller than the default size?
Add the class btn-sm to the button element to make it smaller.
Click to reveal answer
beginner
What is the default size of a Bootstrap button if no size class is added?
The default Bootstrap button size has no extra size class like <code>btn-lg</code> or <code>btn-sm</code>. It uses the base <code>btn</code> class.
Click to reveal answer
beginner
Show the HTML code for a large primary Bootstrap button.
Example:
<button type="button" class="btn btn-primary btn-lg">Large Button</button>
Click to reveal answer
beginner
Can you combine size classes like btn-lg and btn-sm on the same button?
No, you should only use one size class per button. Using both <code>btn-lg</code> and <code>btn-sm</code> will cause conflicts and unexpected results.
Click to reveal answer
Which class makes a Bootstrap button smaller?
Abtn-mini
Bbtn-lg
Cbtn-small
Dbtn-sm
What happens if you do not add any size class to a Bootstrap button?
AButton is extra large
BButton is default size
CButton is hidden
DButton is disabled
Which class combination is correct for a large danger button?
Abtn btn-danger btn-small
Bbtn btn-lg btn-danger btn-sm
Cbtn btn-danger btn-lg
Dbtn btn-danger btn-large
Can you use btn-lg and btn-sm together on one button?
ANo, it causes conflicts
BYes, it makes the button medium size
CYes, it doubles the size
DNo, it disables the button
Which Bootstrap class is NOT related to button size?
Abtn-default
Bbtn-sm
Cbtn-block
Dbtn-lg
Explain how to change the size of a button in Bootstrap and give examples.
Think about the classes you add to the button element.
You got /4 concepts.
    Describe why you should not combine multiple size classes on a single Bootstrap button.
    Consider how CSS classes override each other.
    You got /3 concepts.