"ALL Grids Cheat Sheet"
Bootstrap 3.2.0 Snippet by KeeganRichard

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>ALL Grids Cheat Sheet</h2> <p> <a href="http://bootsnipp.com/iframe/n8x3v" target="_blank">full screen</a> </p> <p> <span class="label label-danger">CSS Tip:</span> CSS wild cards are used to style all col's! </p> <h1>.col-md-12</h1> <div class="row"> <div class="col-md-12">.col-md-12</div> </div> <h1>.col-md-1</h1> <div class="row"> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> </div> <h1>.col-md-2</h1> <div class="row"> <div class="col-md-2">.col-md-2</div> <div class="col-md-2">.col-md-2</div> <div class="col-md-2">.col-md-2</div> <div class="col-md-2">.col-md-2</div> <div class="col-md-2">.col-md-2</div> <div class="col-md-2">.col-md-2</div> </div> <h1>.col-md-3</h1> <div class="row"> <div class="col-md-3">.col-md-3</div> <div class="col-md-3">.col-md-3</div> <div class="col-md-3">.col-md-3</div> <div class="col-md-3">.col-md-3</div> </div> <h1>.col-md-4</h1> <div class="row"> <div class="col-md-4">.col-md-4</div> <div class="col-md-4">.col-md-4</div> <div class="col-md-4">.col-md-4</div> </div> <h1>.col-md-6</h1> <div class="row"> <div class="col-md-6">.col-md-6</div> <div class="col-md-6">.col-md-6</div> </div> <h1>Mixed 4 - 8</h1> <div class="row"> <div class="col-md-8">.col-md-8</div> <div class="col-md-4">.col-md-4</div> </div> <p> <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fbootsnipp.com%2Fiframe%2Fn8x3v" target="_blank"><small>HTML</small><sup>5</sup></a> </p> </div> </div>
/* http://www.sitepoint.com/web-foundations/css3-attribute-selectors/ */ div[class^="col-"], div[class*=" tocolor-"] { background-color: #eee; border: 1px solid black; text-align:center; }

Related: See More


Questions / Comments: