How do I align columns in the center of the page?
This question already has an answer here:
You will want to use Twitter Bootstraps .col-md-offset-*
classes. Here is the documentation. You will want to add an offset to the furthest left column which will then move that div over the amount of columns you define, so for example your html will look like this:
<section id="about-us" class="about-us">
<div class="container-fluid">
<div class="row">
<div class="col-md-3 col-md-offset-3 col-sm-3 col-sm-offset-3"> //see here we added the two offset classes
<div class="block wow fadeInRight" data-wow-delay=".3s" data-wow-duration="900ms">
<h2>one</h2>
</div>
</div>
<div class="row">
<div class="col-md-3 col-sm-3">
<div class="block wow fadeInRight" data-wow-delay=".6s" data-wow-duration="900ms">
<h1>One</h1>
<h1>Two</h1>
<h1>Three</h1>
<h1>Four</h1>
<h1>Five</h1>
<h1>Six</h1>
</div>
</div>
</div>
</div>
</div>
</section>
链接地址: http://www.djcxy.com/p/75900.html
上一篇: 有没有可能做col
下一篇: 如何对齐页面中心的列?