Bootstrap 3
Grid
Basic grid - full width is 12 columns wide
<!-- change .container to .container-fluid
to be full width -->
<div class="container">
<!-- 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>
<!-- nested columns example -->
<div class="row">
<div class="col-xs-6">.col-xs-6</div>
<div class="col-xs-6">.col-xs-6
<div class="row">
<div class="col-md-6">100% mobile
50% everywhere else</div>
<div class="col-md-6">100% mobile
50% everywhere else</div>
</div>
</div>
</div>
</div>
Media queries
/* Extra small devices (phones, less than
768px) No media query since this is the
default in Bootstrap */
/* small (tablets, 768px and up) */
@media (min-width: @screen-sm-min) { ... }
/* medium (desktops, 992px and up) */
@media (min-width: @screen-md-min) { ... }
/* large (large desktops, 1200px and up)
*/
@media (min-width: @screen-lg-min) { ... }
Text & Images
.text-left Left aligned text
.text-center Center aligned text
.text-right Right aligned text
.text-justify Justified text
.text-nowrap No wrap text
.text-lowercause Lowercase text
.text-uppercase Uppercase text
.text-capitalize Capitalized text
.lead Good for first paragraph of article
.list-unstyled Removes default list
margin/padding
.list-inline Makes list items inline
.dl-horizontal Makes list items two
columns
.img-responsive Make an image responsive
.img-rounded Adds rounded corners to
image
.img-circle Crops image to be circle
.img-thumbnail Adds rounded corner and
border to an image
.pull-left Floats item left
.pull-right Floats item right
.center-block Set an elemennt to block
with auto left and right margin
.clearfix Clear floats by adding this
class to the parent container
Blockquote
<blockquote><p>Lorem ipsum dolor</p>
<footer>Someone famous in <cite
title="Source Title">Source Title</
cite></footer></blockquote>
Headings
<h1>h1. Bootstrap heading
<small>Secondary text</small></h1>
<p class="h1">Paragraph that looks like
heading</p>