0
0
Bootsrapmarkup~5 mins

Display utilities in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of Bootstrap's display utilities?
Bootstrap's display utilities help you quickly show, hide, or change the display behavior of elements without writing custom CSS.
Click to reveal answer
beginner
How do you hide an element on all screen sizes using Bootstrap display utilities?
Use the class d-none to hide an element on all screen sizes.
Click to reveal answer
intermediate
What class would you use to make an element display as a block only on medium screens and larger?
Use d-md-block. It shows the element as block starting from medium screens (≥768px) and hides or uses default display on smaller screens.
Click to reveal answer
intermediate
Explain the difference between d-flex and d-inline-flex.
d-flex makes an element a block-level flex container, taking full width by default. d-inline-flex makes it an inline-level flex container, so it only takes as much width as its content.
Click to reveal answer
intermediate
How can you make an element visible only on small screens using Bootstrap display utilities?
Use d-block d-sm-none. This shows the element as block on extra small screens and hides it on small screens and larger.
Click to reveal answer
Which class hides an element on all screen sizes?
Ad-none
Bd-block
Cd-flex
Dd-inline
What does d-md-none do?
AShows element only on medium screens
BHides element on medium screens and larger
CHides element only on medium screens
DShows element on all screens except medium
Which class makes an element a flex container but inline-level?
Ad-flex
Bd-inline
Cd-inline-flex
Dd-block
To show an element only on large screens and up, which class is correct?
Ad-lg-block d-none
Bd-block d-lg-none
Cd-lg-none d-block
Dd-none d-lg-block
What is the default display behavior of d-block?
ABlock-level element
BHidden element
CFlex container
DInline element
Describe how you would use Bootstrap display utilities to show an element only on small screens and hide it on others.
Think about combining classes to control visibility on different screen sizes.
You got /4 concepts.
    Explain the difference between d-flex and d-inline-flex and when you might use each.
    Consider how the element behaves in the flow of the page.
    You got /4 concepts.