Created
January 1, 2014 01:53
-
-
Save 1ambda/8204171 to your computer and use it in GitHub Desktop.
Bootstrap3 Grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Stack the columns on mobile by making one full-width and the other half-width --> | |
<div class="row"> | |
<div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div> | |
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> | |
</div> | |
<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop --> | |
<div class="row"> | |
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> | |
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> | |
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> | |
</div> | |
<!-- Columns are always 50% wide, on mobile and desktop --> | |
<div class="row"> | |
<div class="col-xs-6">.col-xs-6</div> | |
<div class="col-xs-6">.col-xs-6</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment