Answers for "align center class in bootstrap"

41

bootstrap 4 center div

<div class="d-flex justify-content-start">...</div>
<div class="d-flex justify-content-end">...</div>
<div class="d-flex justify-content-center">...</div>
<div class="d-flex justify-content-between">...</div>
<div class="d-flex justify-content-around">...</div>
Posted by: Guest on February-23-2020
6

bootstrap center align columns

<!-- Center columns in a Row -->
<div class="row d-flex justify-content-center text-center">
    <div class="col-4">
        // Add Content
    </div>
    <div class="col-4">
        // Add Content
    </div>
    <div class="col-4">
        // Add Content
    </div>
</div>
Posted by: Guest on May-11-2020
1

bootstrap center

<div class="row h-100">
   <div class="col-sm-12 my-auto">
     <div class="card card-block w-25">Card</div>
   </div>
</div>
Posted by: Guest on March-27-2021

Code answers related to "align center class in bootstrap"

Browse Popular Code Answers by Language