Bootstrap - centralizing single col-md class

0 votes
244 views
added Oct 22, 2018 in Bootstrap by LC Marshal Captain (25,790 points)
<div class="col-md-8 col-md-center">
<!--col-md-8 for width size-->
<!--col-md-center for centralize class-->
.col-md-center {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...