Twitter Bootstrap - add top space between rows

itsme picture itsme · Apr 10, 2012 · Viewed 729k times · Source

How to add margin top to class="row" elements using twitter bootstrap framework?

Answer

Acyra picture Acyra · Jan 20, 2013

Editing or overriding the row in Twitter bootstrap is a bad idea, because this is a core part of the page scaffolding and you will need rows without a top margin.

To solve this, instead create a new class "top-buffer" that adds the standard margin that you need.

.top-buffer { margin-top:20px; }

And then use it on the row divs where you need a top margin.

<div class="row top-buffer"> ...