Bootstrap 5 Grid Classes

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the correct class to use for creating three equal-width columns on all devices?

  • col-4
  • col-md
  • col (correct)
  • col-sm

On which screen width do xlarge devices fall according to Bootstrap 5 grid classes?

  • Equal to or greater than 992px
  • Equal to or greater than 1200px (correct)
  • Less than 576px
  • Equal to or greater than 576px

Which class should be applied to create two various-width columns that start at tablets and scale to large extra desktops?

  • col-md-4
  • col-sm-4 col-lg-8 (correct)
  • col-lg-6
  • col-sm-4 col-sm-8

Which class should be used to add zebra-stripes to a table in Bootstrap?

<p>.table-striped (D)</p> Signup and view all the answers

Which class should be combined to create a dark, striped table in Bootstrap?

<p>.table-dark and .table-striped (B)</p> Signup and view all the answers

Which contextual class should be used to color the whole table in Bootstrap?

<p>.table-primary (D)</p> Signup and view all the answers

How can you add rounded corners to an image in Bootstrap 5?

<p>.rounded (D)</p> Signup and view all the answers

How do you center an image in Bootstrap 5 using utility classes?

<p>.mx-auto.d-block (A)</p> Signup and view all the answers

Which class should you use to shape an image into a circle in Bootstrap 5?

<p>.rounded-circle (B)</p> Signup and view all the answers

What is the first step in using Bootstrap 5 buttons?

<p>Add the btn class to the element (D)</p> Signup and view all the answers

How can you assign background color to a Bootstrap 5 button?

<p>Assign contextual classes like btn-* (B)</p> Signup and view all the answers

Which class should be used for creating small buttons in Bootstrap 5?

<p>btn-sm (B)</p> Signup and view all the answers

Flashcards are hidden until you start studying

Study Notes

Bootstrap 5 Grid and Table Classes

  • Use col class to create three equal-width columns on all devices.
  • Xlarge devices in Bootstrap 5 are defined as screen widths of 1200 pixels and up.
  • To create two columns of varying widths starting at tablets and scaling to large desktops, use col-md-* and col-lg-* classes respectively.
  • Use table-striped class to add zebra-stripes to a table in Bootstrap.
  • Combine table and table-dark with table-striped to create a dark, striped table.
  • The table-primary, table-secondary, etc., contextual classes can color the entire table in Bootstrap.

Bootstrap 5 Image and Button Features

  • To add rounded corners to an image, use the rounded class in Bootstrap 5.
  • Center an image using utility classes like mx-auto along with d-block.
  • Use rounded-circle class to shape an image into a circle in Bootstrap 5.
  • The first step in using Bootstrap 5 buttons is to include the Bootstrap CSS framework in your project.
  • Assign background color to a Bootstrap 5 button using contextual classes like btn-primary, btn-success, etc.
  • The btn-sm class is used for creating small buttons in Bootstrap 5.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Bootstrap and CSS Quiz
9 questions

Bootstrap and CSS Quiz

BeautifulChrysoprase avatar
BeautifulChrysoprase
Bootstrap 5 Tutorial and Examples
7 questions
Bootstrap Basics
29 questions

Bootstrap Basics

ImpressedTuba avatar
ImpressedTuba
Use Quizgecko on...
Browser
Browser