Complete the code to create a Bootstrap container that centers content.
<div class="[1]"> <p>Hello, world!</p> </div>
row or col instead of container.The container class creates a responsive fixed-width container that centers content horizontally.
Complete the code to create a Bootstrap row that holds columns.
<div class="container"> <div class="[1]"> <div class="col">Column 1</div> <div class="col">Column 2</div> </div> </div>
col instead of row for grouping columns.The row class groups columns horizontally in Bootstrap's grid system.
Fix the error in the code to make columns responsive in Bootstrap.
<div class="container"> <div class="row"> <div class="[1]">Column 1</div> <div class="col">Column 2</div> </div> </div>
row or container as a column class.The class col-6 makes the column take half the row width, making it responsive.
Fill both blanks to create a responsive two-column layout with Bootstrap.
<div class="container"> <div class="[1]"> <div class="[2]">Left</div> <div class="col-6">Right</div> </div> </div>
container instead of row for grouping columns.The row class groups columns, and col-6 sets half width for the left column.
Fill all three blanks to create a responsive grid with three equal columns in Bootstrap.
<div class="[1]"> <div class="[2]"> <div class="[3]">Col 1</div> <div class="col">Col 2</div> <div class="col">Col 3</div> </div> </div>
container instead of container-fluid for full width.container-fluid creates a full-width container, row groups columns, and col-4 sets one-third width for the first column.