Answers for "how to use the grid in bootstrap"

3

boostrap grid

<!- BOOTSTRAP GRID SYSTEM ------------------------>
Extra small  .col-    <576px	Mobile Display
Small  .col-sm- ≥576px	Mobile Display
Medium .col-md- ≥768px	Tablet Display
Large  .col-lg-  ≥992px	Desktop Display
Extra large .col-xl- ≥1200px Desktop Display

  <div class="row">
    <div class="col-lg-3 col-md-4 col-sm-6" style="background-color:red; border:1px solid black;">
      One of four columns
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6" style="background-color:yellow; border:1px solid black;">
      One of four columns
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6" style="background-color:green; border:1px solid black;">
      One of four columns
  	</div>
    <div class="col-lg-3 col-md-4 col-sm-6" style="border:1px solid black;">
      One of four columns
  	</div>
  </div>
Posted by: Guest on August-31-2021
5

.row bootstrap

.row{
    display: flex;
    flex-wrap: wrap;
	margin-right: -15px;
    margin-left: -15px;
}
Posted by: Guest on October-06-2020

Code answers related to "how to use the grid in bootstrap"

Browse Popular Code Answers by Language