Complete the code to create a Bootstrap auto-sizing column.
<div class="container"> <div class="row"> <div class="col-[1]"> Auto-sized column </div> </div> </div>
col-12 which makes the column full width.col-fluid which is not a valid Bootstrap class.The col-auto class makes the column width adjust to its content automatically.
Complete the code to create two columns where the first is auto-sized and the second fills the remaining space.
<div class="container"> <div class="row"> <div class="col-[1]"> Auto-sized </div> <div class="col"> Fills remaining space </div> </div> </div>
col-6 which fixes the width to half the row.col-12 which makes the column full width.The col-auto class makes the first column only as wide as its content, while the second column fills the rest.
Fix the error in the code to properly auto-size the column.
<div class="container"> <div class="row"> <div class="[1]"> Auto-sized column </div> </div> </div>
col-fluid which is not recognized by Bootstrap.col-12 which makes the column full width.The class col-auto correctly auto-sizes the column. col-fluid is not a valid Bootstrap class.
Fill both blanks to create a row with an auto-sized column and a fixed 8-column wide column.
<div class="container"> <div class="row"> <div class="col-[1]"> Auto-sized </div> <div class="col-[2]"> Fixed width </div> </div> </div>
col-12 for the fixed width column which takes full width.col-6 instead of col-8 for fixed width.The first column uses col-auto to size based on content, and the second uses col-8 for fixed width.
Fill both blanks to create a row with an auto-sized column, a fixed 4-column wide column, and a column that fills remaining space.
<div class="container"> <div class="row"> <div class="col-[1]"> Auto-sized </div> <div class="col-[2]"> Fixed width </div> <div class="col"> Fills remaining </div> </div> </div>
col-12 for fixed width which takes full row width.The first column uses col-auto for auto-sizing, the second uses col-4 for fixed width, and the third uses col (empty) to fill remaining space.