Add vertical whitespace using Twitter Bootstrap?

Ryan picture Ryan · Sep 5, 2012 · Viewed 207.3k times · Source

What's the best way to add vertical whitespace using Twitter's Bootstrap?

For example, let's say that I am creating a landing page and would like a bit (100px) of blank whitespace above and below a certain button. Obviously, I could create a certain class for that particular button. But, I would think that Bootstrap should have a DRY way of adding in vertical blank spaces.

Answer

jmdeldin picture jmdeldin · Sep 5, 2012

In v2, there isn't anything built-in for that much vertical space, so you'll want to stick with a custom class. For smaller heights, I usually just throw a <div class="control-group"> around a button.