Saturday, 14 September 2013

Twitter Bootstrap 3: Small Offset/Margin

Twitter Bootstrap 3: Small Offset/Margin

I'm using twitter bootstrap 3. What I want is a margin between two divs
which is smaller than the grid size (so col-md-offset-* does not work for
this).
<div id="content-row" class="row">
<div class="col-md-offset-2 col-md-2 content">
some content
</div>
<div id="content" class="col-md-offset-1 col-md-5 content">
some other content
</div>
</div>
I was wondering, what's the twitter-bootstrap way to achieve this? Surely,
one could just define margins but that would break the row/column layout
of twitter bootstrap, so I'm feeling that there must be a better solution.

No comments:

Post a Comment