"ALL Grids Cheat Sheet - Templates"
Bootstrap 3.2.0 Snippet by mrmccormack

<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>Spans One</h1> <div class="row"> <div class="col-md-12">Spans One</div> </div> <h1>Spans Twelve</h1> <div class="row"> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> <div class="col-md-1">Spans Twelve</div> </div> <h1>Spans Six</h1> <div class="row"> <div class="col-md-2">Spans Six</div> <div class="col-md-2">Spans Six</div> <div class="col-md-2">Spans Six</div> <div class="col-md-2">Spans Six</div> <div class="col-md-2">Spans Six</div> <div class="col-md-2">Spans Six</div> </div> <h1>Spans Four</h1> <div class="row"> <div class="col-md-3">Spans Four</div> <div class="col-md-3">Spans Four</div> <div class="col-md-3">Spans Four</div> <div class="col-md-3">Spans Four</div> </div> <h1>Spans Three</h1> <div class="row"> <div class="col-md-4">Spans Three</div> <div class="col-md-4">Spans Three</div> <div class="col-md-4">Spans Three</div> </div> <h1>Spans TWO</h1> <div class="row"> <div class="col-md-6">Spans TWO</div> <div class="col-md-6">Spans TWO</div> </div> <h1>Spans Four / Eight</h1> <div class="row"> <div class="col-md-4">Spans 4</div> <div class="col-md-8">Spans 8</div> </div> <br><br><br><br> <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: