I have a two column row in bootstrap. How do I create space between the columns. - My first col is 8, but I want to make it 7 and have 1 column as just space.
Here's my bootply: http://www.bootply.com/mwGajBOEVe
Here's my HTML.
<div class="container">
<div class="row">
<div class="col-md-8">
<p>The apple tree (Malus domestica) is a deciduous tree in the rose family best known for its sweet, pomaceous fruit, the apple.</p>
</div>
<div class="col-md-4"">
The orange (specifically, the sweet orange) is the fruit of the citrus species Citrus × sinensis in the family Rutaceae.</div>
</div>
</div>
Should I create empty columns to do this?
No, use offsets like this
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
</div>
<div class="row">
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
</div>
you can do like this:
<div class="container">
<div class="row">
<div class="col-md-7 col-md-offset-1">
<p>Join our growing</p>
</div>
<div class="col-md-4"">
</div>
</div>
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With