"center gird"
Bootstrap 3.3.0 Snippet by iammahesh

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> <div class="wrapper"> <div class="container center-align"> <div class="row"> <div class="col-xs-3"> <div class="box"> <p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p> </div> </div> <div class="col-xs-3"> <div class="box"> <p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p> </div> </div> <div class="col-xs-3"> <div class="box"> <p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p> </div> </div> <div class="col-xs-6"> <div class="box"> <p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p> </div> </div> </div> <div class="col-xs-4"> <div class="box"> <p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p> </div> </div> </div> </div>
.wrapper { background: green; padding: 20px 0; } .box { border-radius: 10px; margin-bottom: 30px; background: #fff; padding: 10px; color: #000; } .center-align { letter-spacing: -4px; text-align: center; font-size: 0; } .center-align [class*='col-'] { display: inline-block; vertical-align: top; letter-spacing: 0; font-size: 14px; float: none; }

Related: See More


Questions / Comments: