Complete the code to add a responsive container that adjusts with screen size.
<div class="[1]"> <p>This container changes width based on screen size.</p> </div>
container-fluid which is always full width.row or col which are for grid layout, not containers.The container class creates a responsive fixed-width container that adapts at breakpoints.
Complete the code to make a column that is full width on small screens and half width on medium screens.
<div class="row"> <div class="col-12 [1]"> <p>Responsive column</p> </div> </div>
col-sm-6 which applies at smaller screens than medium.col-lg-6 or col-xl-6 which apply at larger breakpoints.The class col-md-6 makes the column half width starting at medium screens and up.
Fix the error in the breakpoint class to make the column full width on large screens and half width on extra large screens.
<div class="row"> <div class="col-lg-12 [1]"> <p>Responsive column</p> </div> </div>
col-lg-6 which affects large screens, not extra large.col-md-6 or col-sm-6.The class col-xl-6 makes the column half width starting at extra large screens, while col-lg-12 keeps it full width on large screens.
Fill both blanks to create a button that is full width on small screens and auto width on medium screens.
<button class="btn btn-primary [1] [2]"> Click me </button>
w-auto alone which does not make the button full width on small screens.w-100 makes the button full width, and d-md-inline-block changes display to inline-block starting at medium screens for auto width.
Fill all three blanks to create a responsive grid with 3 columns on large screens, 2 columns on medium, and 1 column on small screens.
<div class="row"> <div class="[1] [2] [3]"> <p>Column 1</p> </div> <div class="[1] [2] [3]"> <p>Column 2</p> </div> <div class="[1] [2] [3]"> <p>Column 3</p> </div> </div>
col-sm-4 which affects small screens, not medium or large.col-12 for full width on small screens.col-lg-4 creates 3 equal columns on large screens (12/4=3), col-md-6 creates 2 columns on medium screens (12/6=2), and col-12 makes each column full width on small screens.