Loading...

Bootstrap Base Content

Style Guide Documentation

about

Comments and documentation about your style guide. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Necessitatibus nobis enim labore facilis consequuntur! Veritatis neque est suscipit tenetur temporibus enim

Foundation

colors

Main Colors

#57DAE6
#57DAE6
#57DAE6
#57DAE6
#4dd3c9
#339db0

Complementary Colors

#384355
#384355
#384355
#384355

grid

.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-8
.col-md-4
.col-md-4
.col-md-4
.col-md-4
.col-md-6
.col-md-6

typography

Font Stacks

"HelveticaNeue", "Helvetica", Arial, sans-serif;

Georgia, Times, "Times New Roman", serif;

Base Styles

address

Example

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890
Full Name
[email protected]

Usage Notes

This is how the element is used:

Copy Source
  1. <address>
  2. <strong>Twitter, Inc.</strong><br>
  3. 795 Folsom Ave, Suite 600<br>
  4. San Francisco, CA 94107<br>
  5. <abbr title="Phone">P:</abbr> (123) 456-7890
  6. </address>
  7. <address>
  8. <strong>Full Name</strong><br>
  9. <a href="mailto:#">[email protected]</a>
  10. </address>

badges

Usage Notes

This is how the element is used:

Copy Source
  1. <ul class="nav nav-pills">
  2. <li class="active"><a href="#">Home <span class="badge">42</span></a></li>
  3. <li><a href="#">Profile</a></li>
  4. <li><a href="#">Messages <span class="badge">3</span></a></li>
  5. </ul>
  6. <br>
  7. <ul class="nav nav-pills nav-stacked" style="max-width: 260px;">
  8. <li class="active">
  9. <a href="#">
  10. <span class="badge pull-right">42</span>
  11. Home
  12. </a>
  13. </li>
  14. <li><a href="#">Profile</a></li>
  15. <li>
  16. <a href="#">
  17. <span class="badge pull-right">3</span>
  18. Messages
  19. </a>
  20. </li>
  21. </ul>
  22. <br>
  23. <button class="btn btn-primary" type="button">
  24. Messages <span class="badge">4</span>
  25. </button>

blockquote

Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Blockquote with attribution

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

Right aligned

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

Usage Notes

This is how the element is used:

Copy Source
  1. <blockquote>
  2. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  3. </blockquote>
  4. <h3>Blockquote with attribution</h3>
  5. <blockquote>
  6. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  7. <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
  8. </blockquote>
  9. <h3>Right aligned</h3>
  10. <blockquote class="blockquote-reverse">
  11. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  12. <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
  13. </blockquote>

buttons

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <p>
  2. <button type="button" class="btn btn-default">Default</button>
  3. <button type="button" class="btn btn-primary">Primary</button>
  4. <button type="button" class="btn btn-success">Success</button>
  5. <button type="button" class="btn btn-info">Info</button>
  6. <button type="button" class="btn btn-warning">Warning</button>
  7. <button type="button" class="btn btn-danger">Danger</button>
  8. <button type="button" class="btn btn-link">Link</button>
  9. </p>
  10. <p>
  11. <button type="button" class="btn btn-default disabled">Default</button>
  12. <button type="button" class="btn btn-primary disabled">Primary</button>
  13. <button type="button" class="btn btn-success disabled">Success</button>
  14. <button type="button" class="btn btn-info disabled">Info</button>
  15. <button type="button" class="btn btn-warning disabled">Warning</button>
  16. <button type="button" class="btn btn-danger disabled">Danger</button>
  17. <button type="button" class="btn btn-link disabled">Link</button>
  18. </p>
  19. <p>
  20. <button type="button" class="btn btn-primary btn-lg">Large</button>
  21. <button type="button" class="btn btn-primary disabled">Disabled</button>
  22. <button type="button" class="btn btn-primary">Default</button>
  23. <button type="button" class="btn btn-primary btn-sm">Small</button>
  24. <button type="button" class="btn btn-primary btn-xs">Extra Small</button>
  25. </p>

code

Example

<p>A block of code is wrapped in pre tags</p>

For example, <section> should be wrapped as inline.

To switch directories, type cd followed by the name of the directory.

Usage Notes

This is how the element is used:

Copy Source
  1. <pre>&lt;p&gt;A block of code is wrapped in pre tags&lt;/p&gt;</pre>
  2. <p>For example, <code>&lt;section&gt;</code> should be wrapped as inline.</p>
  3. <p>To switch directories, type <kbd>cd</kbd> followed by the name of the directory.</p>

definition lists

Example

Description lists
A description list is perfect for defining terms.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.

Horizontal

Description lists
A description list is perfect for defining terms.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
Felis euismod semper eget lacinia
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

Usage Notes

This is how the element is used:

Copy Source
  1. <dl>
  2. <dt>Description lists</dt>
  3. <dd>A description list is perfect for defining terms.</dd>
  4. <dt>Euismod</dt>
  5. <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  6. <dd>Donec id elit non mi porta gravida at eget metus.</dd>
  7. <dt>Malesuada porta</dt>
  8. <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
  9. </dl>
  10. <h3>Horizontal</h3>
  11. <dl class="dl-horizontal">
  12. <dt>Description lists</dt>
  13. <dd>A description list is perfect for defining terms.</dd>
  14. <dt>Euismod</dt>
  15. <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  16. <dd>Donec id elit non mi porta gravida at eget metus.</dd>
  17. <dt>Malesuada porta</dt>
  18. <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
  19. <dt>Felis euismod semper eget lacinia</dt>
  20. <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
  21. </dl>

form controls

Example

Inline checkboxes

Usage Notes

This is how the element is used:

Copy Source
  1. <input type="text" class="form-control" placeholder="Text input">
  2. <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
  3. <input class="form-control input-lg" type="text" placeholder=".input-lg">
  4. <input class="form-control" type="text" placeholder="Default input">
  5. <input class="form-control input-sm" type="text" placeholder=".input-sm">
  6. <div class="row">
  7. <div class="col-xs-2">
  8. <input type="text" class="form-control" placeholder=".col-xs-2">
  9. </div>
  10. <div class="col-xs-3">
  11. <input type="text" class="form-control" placeholder=".col-xs-3">
  12. </div>
  13. <div class="col-xs-4">
  14. <input type="text" class="form-control" placeholder=".col-xs-4">
  15. </div>
  16. </div>
  17. <div class="form-group has-success has-feedback">
  18. <label class="control-label" for="inputSuccess2">Input with success</label>
  19. <input type="text" class="form-control" id="inputSuccess2">
  20. <span class="glyphicon glyphicon-ok form-control-feedback"></span>
  21. </div>
  22. <div class="form-group has-warning has-feedback">
  23. <label class="control-label" for="inputWarning2">Input with warning</label>
  24. <input type="text" class="form-control" id="inputWarning2">
  25. <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
  26. </div>
  27. <div class="form-group has-error has-feedback">
  28. <label class="control-label" for="inputError2">Input with error</label>
  29. <input type="text" class="form-control" id="inputError2">
  30. <span class="glyphicon glyphicon-remove form-control-feedback"></span>
  31. </div>
  32. <textarea class="form-control" rows="3"></textarea>
  33. <div class="checkbox">
  34. <label>
  35. <input type="checkbox" value="">
  36. Option one is this and that&mdash;be sure to include why it's great
  37. </label>
  38. </div>
  39. <div class="radio">
  40. <label>
  41. <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
  42. Option one is this and that&mdash;be sure to include why it's great
  43. </label>
  44. </div>
  45. <div class="radio">
  46. <label>
  47. <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
  48. Option two can be something else and selecting it will deselect option one
  49. </label>
  50. </div>
  51. <h3>Inline checkboxes</h3>
  52. <label class="checkbox-inline">
  53. <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
  54. </label>
  55. <label class="checkbox-inline">
  56. <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
  57. </label>
  58. <label class="checkbox-inline">
  59. <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
  60. </label>
  61. <select class="form-control">
  62. <option>1</option>
  63. <option>2</option>
  64. <option>3</option>
  65. <option>4</option>
  66. <option>5</option>
  67. </select>
  68. <select multiple class="form-control">
  69. <option>1</option>
  70. <option>2</option>
  71. <option>3</option>
  72. <option>4</option>
  73. <option>5</option>
  74. </select>

headings

Example

Page Header With Small Text

h1. Bootstrap heading Secondary text

h2. Bootstrap heading Secondary text

h3. Bootstrap heading Secondary text

h4. Bootstrap heading Secondary text

h5. Bootstrap heading Secondary text
h6. Bootstrap heading Secondary text

Usage Notes

This is how the element is used:

Copy Source
  1. <h1 class="page-header">Page Header <small>With Small Text</small></h1>
  2. <h1>h1. Bootstrap heading <small>Secondary text</small></h1>
  3. <h2>h2. Bootstrap heading <small>Secondary text</small></h2>
  4. <h3>h3. Bootstrap heading <small>Secondary text</small></h3>
  5. <h4>h4. Bootstrap heading <small>Secondary text</small></h4>
  6. <h5>h5. Bootstrap heading <small>Secondary text</small></h5>
  7. <h6>h6. Bootstrap heading <small>Secondary text</small></h6>

images

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <p>
  2. <img src="http://placehold.it/120x100" class="img-rounded">
  3. <img src="http://placehold.it/120x100" class="img-circle">
  4. <img src="http://placehold.it/120x100" class="img-thumbnail">
  5. </p>
  6. <p>
  7. <img src="http://placehold.it/1200x300" class="img-responsive"></img>

labels

Example

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New
Default Primary Success Info Warning Danger

Usage Notes

This is how the element is used:

Copy Source
  1. <h1>Example heading <span class="label label-default">New</span></h1>
  2. <h2>Example heading <span class="label label-default">New</span></h2>
  3. <h3>Example heading <span class="label label-default">New</span></h3>
  4. <h4>Example heading <span class="label label-default">New</span></h4>
  5. <h5>Example heading <span class="label label-default">New</span></h5>
  6. <h6>Example heading <span class="label label-default">New</span></h6>
  7. <span class="label label-default">Default</span>
  8. <span class="label label-primary">Primary</span>
  9. <span class="label label-success">Success</span>
  10. <span class="label label-info">Info</span>
  11. <span class="label label-warning">Warning</span>
  12. <span class="label label-danger">Danger</span>

lists

Example

Unordered

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem

Ordered

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa
  4. Facilisis in pretium nisl aliquet
  5. Nulla volutpat aliquam velit
  6. Faucibus porta lacus fringilla vel
  7. Aenean sit amet erat nunc
  8. Eget porttitor lorem

Unstyled

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem

Inline

  • Lorem ipsum
  • Phasellus iaculis
  • Nulla volutpat

Usage Notes

This is how the element is used:

Copy Source
  1. <h3>Unordered</h3>
  2. <ul>
  3. <li>Lorem ipsum dolor sit amet</li>
  4. <li>Consectetur adipiscing elit</li>
  5. <li>Integer molestie lorem at massa</li>
  6. <li>Facilisis in pretium nisl aliquet</li>
  7. <li>Nulla volutpat aliquam velit
  8. <ul>
  9. <li>Phasellus iaculis neque</li>
  10. <li>Purus sodales ultricies</li>
  11. <li>Vestibulum laoreet porttitor sem</li>
  12. <li>Ac tristique libero volutpat at</li>
  13. </ul>
  14. </li>
  15. <li>Faucibus porta lacus fringilla vel</li>
  16. <li>Aenean sit amet erat nunc</li>
  17. <li>Eget porttitor lorem</li>
  18. </ul>
  19. <h3>Ordered</h3>
  20. <ol>
  21. <li>Lorem ipsum dolor sit amet</li>
  22. <li>Consectetur adipiscing elit</li>
  23. <li>Integer molestie lorem at massa</li>
  24. <li>Facilisis in pretium nisl aliquet</li>
  25. <li>Nulla volutpat aliquam velit</li>
  26. <li>Faucibus porta lacus fringilla vel</li>
  27. <li>Aenean sit amet erat nunc</li>
  28. <li>Eget porttitor lorem</li>
  29. </ol>
  30. <h3>Unstyled</h3>
  31. <ul class="list-unstyled">
  32. <li>Lorem ipsum dolor sit amet</li>
  33. <li>Consectetur adipiscing elit</li>
  34. <li>Integer molestie lorem at massa</li>
  35. <li>Facilisis in pretium nisl aliquet</li>
  36. <li>Nulla volutpat aliquam velit
  37. <ul>
  38. <li>Phasellus iaculis neque</li>
  39. <li>Purus sodales ultricies</li>
  40. <li>Vestibulum laoreet porttitor sem</li>
  41. <li>Ac tristique libero volutpat at</li>
  42. </ul>
  43. </li>
  44. <li>Faucibus porta lacus fringilla vel</li>
  45. <li>Aenean sit amet erat nunc</li>
  46. <li>Eget porttitor lorem</li>
  47. </ul>
  48. <h3>Inline</h3>
  49. <ul class="list-inline">
  50. <li>Lorem ipsum</li>
  51. <li>Phasellus iaculis</li>
  52. <li>Nulla volutpat</li>
  53. </ul>

progress bars

Example

Basic

60% Complete
60%

Contextual Alternatives

40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete

Striped

40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)

Animated

45% Complete

Stacked

35% Complete (success)
20% Complete (warning)
10% Complete (danger)

Usage Notes

This is how the element is used:

Copy Source
  1. <h3>Basic</h3>
  2. <div class="progress">
  3. <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
  4. <span class="sr-only">60% Complete</span>
  5. </div>
  6. </div>
  7. <div class="progress">
  8. <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
  9. 60%
  10. </div>
  11. </div>
  12. <h3>Contextual Alternatives</h3>
  13. <div class="progress">
  14. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
  15. <span class="sr-only">40% Complete (success)</span>
  16. </div>
  17. </div>
  18. <div class="progress">
  19. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
  20. <span class="sr-only">20% Complete</span>
  21. </div>
  22. </div>
  23. <div class="progress">
  24. <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
  25. <span class="sr-only">60% Complete (warning)</span>
  26. </div>
  27. </div>
  28. <div class="progress">
  29. <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
  30. <span class="sr-only">80% Complete</span>
  31. </div>
  32. </div>
  33. <h3>Striped</h3>
  34. <div class="progress progress-striped">
  35. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
  36. <span class="sr-only">40% Complete (success)</span>
  37. </div>
  38. </div>
  39. <div class="progress progress-striped">
  40. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
  41. <span class="sr-only">20% Complete</span>
  42. </div>
  43. </div>
  44. <div class="progress progress-striped">
  45. <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
  46. <span class="sr-only">60% Complete (warning)</span>
  47. </div>
  48. </div>
  49. <div class="progress progress-striped">
  50. <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
  51. <span class="sr-only">80% Complete (danger)</span>
  52. </div>
  53. </div>
  54. <h3>Animated</h3>
  55. <div class="progress progress-striped active">
  56. <div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
  57. <span class="sr-only">45% Complete</span>
  58. </div>
  59. </div>
  60. <h3>Stacked</h3>
  61. <div class="progress">
  62. <div class="progress-bar progress-bar-success" style="width: 35%">
  63. <span class="sr-only">35% Complete (success)</span>
  64. </div>
  65. <div class="progress-bar progress-bar-warning" style="width: 20%">
  66. <span class="sr-only">20% Complete (warning)</span>
  67. </div>
  68. <div class="progress-bar progress-bar-danger" style="width: 10%">
  69. <span class="sr-only">10% Complete (danger)</span>
  70. </div>
  71. </div>

tables

Example

# First Name Tables
1 Michael Are formatted like this
2 Lucille Do you like them?
3 Success
4 Danger
5 Warning
6 Active

Striped & condensed table with alternating backgrounds

# First Name Tables
1 Michael This one is bordered and condensed
2 Lucille Do you still like it?

Usage Notes

This is how the element is used:

Copy Source
  1. <table class="table table-hover">
  2. <thead>
  3. <tr>
  4. <th>#</th>
  5. <th>First Name</th>
  6. <th>Tables</th>
  7. </tr>
  8. </thead>
  9. <tbody>
  10. <tr>
  11. <td>1</td>
  12. <td>Michael</td>
  13. <td>Are formatted like this</td>
  14. </tr>
  15. <tr>
  16. <td>2</td>
  17. <td>Lucille</td>
  18. <td>Do you like them?</td>
  19. </tr>
  20. <tr class="success">
  21. <td>3</td>
  22. <td>Success</td>
  23. <td></td>
  24. </tr>
  25. <tr class="danger">
  26. <td>4</td>
  27. <td>Danger</td>
  28. <td></td>
  29. </tr>
  30. <tr class="warning">
  31. <td>5</td>
  32. <td>Warning</td>
  33. <td></td>
  34. </tr>
  35. <tr class="active">
  36. <td>6</td>
  37. <td>Active</td>
  38. <td></td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. <h3>Striped &amp; condensed table with alternating backgrounds</h3>
  43. <table class="table table-striped table-bordered table-condensed">
  44. <thead>
  45. <tr>
  46. <th>#</th>
  47. <th>First Name</th>
  48. <th>Tables</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. <tr>
  53. <td>1</td>
  54. <td>Michael</td>
  55. <td>This one is bordered and condensed</td>
  56. </tr>
  57. <tr>
  58. <td>2</td>
  59. <td>Lucille</td>
  60. <td>Do you still like it?</td>
  61. </tr>
  62. </tbody>
  63. </table>

text elements

Example

Example body text

Lead paragraph: vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

This line of text is meant to be treated as fine print.

The following snippet of text is rendered as bold text.

The following snippet of text is rendered as italicized text.

An abbreviation of the word attribute is attr.

Left aligned text.

Center aligned text.

Right aligned text.

Justified text.

Muted: Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.

Primary: Nullam id dolor id nibh ultricies vehicula ut id elit.

Warning: Etiam porta sem malesuada magna mollis euismod.

Danger: Donec ullamcorper nulla non metus auctor fringilla.

Success: Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

Info: Maecenas sed diam eget risus varius blandit sit amet non magna.

Usage Notes

This is how the element is used:

Copy Source
  1. <h2>Example body text</h2>
  2. <p class="lead">Lead paragraph: vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
  3. <p>Nullam quis risus eget <a href="#">urna mollis ornare</a> vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
  4. <p><small>This line of text is meant to be treated as fine print.</small></p>
  5. <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
  6. <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
  7. <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
  8. <p class="text-left">Left aligned text.</p>
  9. <p class="text-center">Center aligned text.</p>
  10. <p class="text-right">Right aligned text.</p>
  11. <p class="text-justify">Justified text.</p>
  12. <p class="text-muted">Muted: Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
  13. <p class="text-primary">Primary: Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  14. <p class="text-warning">Warning: Etiam porta sem malesuada magna mollis euismod.</p>
  15. <p class="text-danger">Danger: Donec ullamcorper nulla non metus auctor fringilla.</p>
  16. <p class="text-success">Success: Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
  17. <p class="text-info">Info: Maecenas sed diam eget risus varius blandit sit amet non magna.</p>

well

Example

Look, I'm in a well!
Small Well
Large Padding Well

Usage Notes

Copy Source
  1. <div class="well">
  2. Look, I'm in a well!
  3. </div>
  4. <div class="well well-small">Small Well
  5. </div>
  6. <div class="well well-large">Large Padding Well
  7. </div>

Patterns - Design and mark-up patterns unique to your site.

alerts

Example

Warning Message! Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Error Message! Numquam quos fuga quam suscipit sapiente perferendis magnam.
Success Message! Totam officiis dolorum voluptatibus maxime molestiae iste.
Info Message! Consequatur facere deleniti cumque ducimus maiores nemo.

Usage Notes

This is how the element is used:

Copy Source
  1. <!-- Sample pattern, your site's patterns will be different -->
  2. <div class="alert alert-warning">
  3. <strong>Warning Message!</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit.
  4. </div>
  5. <div class="alert alert-error">
  6. <strong>Error Message!</strong> Numquam quos fuga quam suscipit sapiente perferendis magnam.
  7. </div>
  8. <div class="alert alert-success">
  9. <strong>Success Message!</strong> Totam officiis dolorum voluptatibus maxime molestiae iste.
  10. </div>
  11. <div class="alert alert-info">
  12. <strong>Info Message!</strong> Consequatur facere deleniti cumque ducimus maiores nemo.
  13. </div>

breadcrumbs

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <ol class="breadcrumb">
  2. <li><a href="#">Home</a></li>
  3. <li><a href="#">Library</a></li>
  4. <li class="active">Data</li>
  5. </ol>

buttons advanced

Example

Button Groups

With Dropdown

Vertical

Usage Notes

This is how the element is used:

Copy Source
  1. <h4>Button Groups</h4><!--sizes-->
  2. <div class="btn-toolbar" role="toolbar">
  3. <div class="btn-group btn-group-lg">
  4. <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button>
  5. </div>
  6. </div>
  7. <div class="col-md-12">
  8. <div class="btn-toolbar" role="toolbar">
  9. <div class="btn-group">
  10. <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="col-md-12">
  15. <div class="btn-toolbar" role="toolbar">
  16. <div class="btn-group btn-group-sm">
  17. <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col-md-12">
  22. <div class="btn-toolbar" role="toolbar">
  23. <div class="btn-group btn-group-xs">
  24. <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button>
  25. </div>
  26. </div>
  27. </div><!--with dropdown-->
  28. <h4>With Dropdown</h4>
  29. <div class="col-md-12">
  30. <div class="btn-group">
  31. <button type="button" class="btn btn-default">1</button> <button type="button" class="btn btn-default">2</button>
  32. <div class="btn-group">
  33. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Dropdown</button>
  34. <ul class="dropdown-menu">
  35. <li><a href="#">Dropdown link</a></li>
  36. <li><a href="#">Dropdown link</a></li>
  37. </ul>
  38. </div>
  39. </div>
  40. </div><!--vertical-->
  41. <h4>Vertical</h4>
  42. <div class="col-md-12">
  43. <div class="btn-group-vertical">
  44. <button type="button" class="btn btn-default">Button</button> <button type="button" class="btn btn-default">Button</button>
  45. <div class="btn-group">
  46. <button id="btnGroupVerticalDrop1" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Dropdown</button>
  47. <ul class="dropdown-menu" role="menu" aria-labelledby="btnGroupVerticalDrop1">
  48. <li><a href="#">Dropdown link</a></li>
  49. <li><a href="#">Dropdown link</a></li>
  50. </ul>
  51. </div><button type="button" class="btn btn-default">Button</button>
  52. </div>
  53. </div>
  54. <div class="col-md-12">
  55. <!--justified-->
  56. <h4>Justified</h4>
  57. <div class="btn-group btn-group-justified">
  58. <div class="btn-group">
  59. <button type="button" class="btn btn-default">Left</button>
  60. </div>
  61. <div class="btn-group">
  62. <button type="button" class="btn btn-default">Middle</button>
  63. </div>
  64. <div class="btn-group">
  65. <button type="button" class="btn btn-default">Right</button>
  66. </div>
  67. </div>
  68. <h4>Dropdowns</h4>
  69. <div class="col-md-12">
  70. <!-- Split button -->
  71. <div class="btn-group">
  72. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Default</button>
  73. <ul class="dropdown-menu" role="menu">
  74. <li><a href="#">Action</a></li>
  75. <li><a href="#">Another action</a></li>
  76. <li><a href="#">Something else here</a></li>
  77. <li><a href="#">Separated link</a></li>
  78. </ul>
  79. </div><!-- /btn-group -->
  80. <div class="btn-group">
  81. <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Primary</button>
  82. <ul class="dropdown-menu" role="menu">
  83. <li><a href="#">Action</a></li>
  84. <li><a href="#">Another action</a></li>
  85. <li><a href="#">Something else here</a></li>
  86. <li><a href="#">Separated link</a></li>
  87. </ul>
  88. </div><!-- /btn-group -->
  89. <div class="btn-group">
  90. <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown">Success</button>
  91. <ul class="dropdown-menu" role="menu">
  92. <li><a href="#">Action</a></li>
  93. <li><a href="#">Another action</a></li>
  94. <li><a href="#">Something else here</a></li>
  95. <li><a href="#">Separated link</a></li>
  96. </ul>
  97. </div><!-- /btn-group -->
  98. <div class="btn-group">
  99. <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown">Info</button>
  100. <ul class="dropdown-menu" role="menu">
  101. <li><a href="#">Action</a></li>
  102. <li><a href="#">Another action</a></li>
  103. <li><a href="#">Something else here</a></li>
  104. <li><a href="#">Separated link</a></li>
  105. </ul>
  106. </div><!-- /btn-group -->
  107. <div class="btn-group">
  108. <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Warning</button>
  109. <ul class="dropdown-menu" role="menu">
  110. <li><a href="#">Action</a></li>
  111. <li><a href="#">Another action</a></li>
  112. <li><a href="#">Something else here</a></li>
  113. <li><a href="#">Separated link</a></li>
  114. </ul>
  115. </div><!-- /btn-group -->
  116. <div class="btn-group">
  117. <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">Danger</button>
  118. <ul class="dropdown-menu" role="menu">
  119. <li><a href="#">Action</a></li>
  120. <li><a href="#">Another action</a></li>
  121. <li><a href="#">Something else here</a></li>
  122. <li><a href="#">Separated link</a></li>
  123. </ul>
  124. </div><!-- /btn-group -->
  125. </div>
  126. <div class="col-md-12">
  127. <!--split-->
  128. <div class="btn-group">
  129. <button type="button" class="btn btn-default">Default</button>
  130. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
  131. <span class="caret"></span>
  132. <span class="sr-only">Toggle Dropdown</span>
  133. </button>
  134. <ul class="dropdown-menu" role="menu">
  135. <li><a href="#">Action</a></li>
  136. <li><a href="#">Another action</a></li>
  137. <li><a href="#">Something else here</a></li>
  138. <li><a href="#">Separated link</a></li>
  139. </ul>
  140. </div><!-- /btn-group -->
  141. <div class="btn-group">
  142. <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <span class="sr-only">Toggle Dropdown</span><span class="caret"></span></button>
  143. <ul class="dropdown-menu" role="menu">
  144. <li><a href="#">Action</a></li>
  145. <li><a href="#">Another action</a></li>
  146. <li><a href="#">Something else here</a></li>
  147. <li><a href="#">Separated link</a></li>
  148. </ul>
  149. </div><!-- /btn-group -->
  150. <div class="btn-group">
  151. <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
  152. <ul class="dropdown-menu" role="menu">
  153. <li><a href="#">Action</a></li>
  154. <li><a href="#">Another action</a></li>
  155. <li><a href="#">Something else here</a></li>
  156. <li><a href="#">Separated link</a></li>
  157. </ul>
  158. </div><!-- /btn-group -->
  159. <div class="btn-group">
  160. <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button>
  161. <ul class="dropdown-menu" role="menu">
  162. <li><a href="#">Action</a></li>
  163. <li><a href="#">Another action</a></li>
  164. <li><a href="#">Something else here</a></li>
  165. <li><a href="#">Separated link</a></li>
  166. </ul>
  167. </div><!-- /btn-group -->
  168. <div class="btn-group">
  169. <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span> <span class="sr-only">Toggle Dropdown</span></button>
  170. <ul class="dropdown-menu" role="menu">
  171. <li><a href="#">Action</a></li>
  172. <li><a href="#">Another action</a></li>
  173. <li><a href="#">Something else here</a></li>
  174. <li><a href="#">Separated link</a></li>
  175. </ul>
  176. </div><!-- /btn-group -->
  177. <div class="btn-group">
  178. <button type="button" class="btn btn-danger">Danger</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
  179. <ul class="dropdown-menu" role="menu">
  180. <li><a href="#">Action</a></li>
  181. <li><a href="#">Another action</a></li>
  182. <li><a href="#">Something else here</a></li>
  183. <li><a href="#">Separated link</a></li>
  184. </ul>
  185. </div><!-- /btn-group -->
  186. </div>
  187. <div class="col-md-12">
  188. <!-- Large button group -->
  189. <div class="btn-group">
  190. <button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown">Large button</button>
  191. <div style="margin-left: 2em" class="dropdown-menu">
  192. ...
  193. </div>
  194. </div><!-- Small button group -->
  195. <div class="btn-group">
  196. <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown">Small button</button>
  197. <div style="margin-left: 2em" class="dropdown-menu">
  198. ...
  199. </div>
  200. </div><!-- Extra small button group -->
  201. <div class="btn-group">
  202. <button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown">Extra small button</button>
  203. <div style="margin-left: 2em" class="dropdown-menu">
  204. ...
  205. </div>
  206. </div>
  207. </div>
  208. </div>

dropdowns

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <div class="dropdown">
  2. <button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">
  3. Dropdown
  4. <span class="caret"></span>
  5. </button>
  6. <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2">
  7. <li role="presentation" class="dropdown-header">Dropdown header</li>
  8. <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
  9. <li role="presentation" class="disabled"><a role="menuitem" tabindex="-1" href="#">Disabled action</a></li>
  10. <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
  11. <li role="presentation" class="divider"></li>
  12. <li role="presentation" class="dropdown-header">Dropdown header</li>
  13. <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
  14. </ul>
  15. </div>
  16. <div class="dropdown">
  17. <!-- Link or button to toggle dropdown -->
  18. <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static;">
  19. <li class="dropdown-header">Dropdown header</li>
  20. <li class="disabled">
  21. <a tabindex="-1" href="#">Action</a>
  22. </li>
  23. <li>
  24. <a tabindex="-1" href="#">Another action</a>
  25. </li>
  26. <li>
  27. <a tabindex="-1" href="#">Something else here</a>
  28. </li>
  29. <li class="divider"></li>
  30. <li>
  31. <a tabindex="-1" href="#">Separated link</a>
  32. </li>
  33. </ul>
  34. </div>

forms

Example

Legend

Example block-level help text here.



Usage Notes

This is how the element is used:

Copy Source
  1. <form>
  2. <fieldset>
  3. <legend>Legend</legend>
  4. <div class="form-group">
  5. <label for="exampleInputEmail">Email address</label>
  6. <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email">
  7. </div>
  8. <div class="form-group">
  9. <label for="exampleInputPassword">Password</label>
  10. <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password">
  11. </div>
  12. <div class="form-group">
  13. <label for="exampleInputFile">File input</label>
  14. <input type="file" class="form-control" id="exampleInputFile">
  15. <p class="help-block">Example block-level help text here.</p>
  16. </div>
  17. <div class="checkbox">
  18. <label>
  19. <input type="checkbox">Check me out</label>
  20. </div>
  21. <button type="submit" class="btn btn-default">Submit</button>
  22. </fieldset>
  23. </form>
  24. <hr>
  25. <form class="form-inline">
  26. <input type="text" class="form-control" placeholder="Email" style="width: 200px;">
  27. <input type="password" class="form-control" placeholder="Password" style="width: 200px;">
  28. <div class="checkbox">
  29. <label>
  30. <input type="checkbox">Remember me</label>
  31. </div>
  32. <button type="submit" class="btn btn-default">Sign in</button>
  33. </form>
  34. <hr>
  35. <form class="form-horizontal">
  36. <div class="form-group">
  37. <label for="inputEmail" class="col-lg-2 control-label">Email</label>
  38. <div class="col-lg-10">
  39. <input type="text" class="form-control" id="inputEmail" placeholder="Email">
  40. </div>
  41. </div>
  42. <div class="form-group has-warning">
  43. <label for="inputEmail" class="col-lg-2 control-label">Email</label>
  44. <div class="col-lg-10">
  45. <input type="text" class="form-control" id="inputEmail" placeholder="Email">
  46. </div>
  47. </div>
  48. <div class="form-group has-error">
  49. <label for="inputEmail" class="col-lg-2 control-label">Email</label>
  50. <div class="col-lg-10">
  51. <input type="text" class="form-control" id="inputEmail" placeholder="Email">
  52. </div>
  53. </div>
  54. <div class="form-group has-success">
  55. <label for="inputEmail" class="col-lg-2 control-label">Email</label>
  56. <div class="col-lg-10">
  57. <input type="text" class="form-control" id="inputEmail" placeholder="Email">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label for="inputPassword" class="col-lg-2 control-label">Password</label>
  62. <div class="col-lg-10">
  63. <input type="password" class="form-control" id="inputPassword" placeholder="Password">
  64. <div class="checkbox">
  65. <label>
  66. <input type="checkbox">Remember me</label>
  67. </div>
  68. <button type="submit" class="btn btn-default">Sign in</button>
  69. </div>
  70. </div>
  71. </form>

hero

Example

Hello, world!

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

Learn more

Usage Notes

This is how the element is used:

Copy Source
  1. <div class="jumbotron">
  2. <h1>Hello, world!</h1>
  3. <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
  4. <p><a class="btn btn-primary btn-lg" role="button">Learn more</a></p>
  5. </div>

list groups

Example

  • 14 Cras justo odio
  • 2 Dapibus ac facilisis in
  • 1 Morbi leo risus

With links

Contextual classes

  • Dapibus ac facilisis in
  • Cras sit amet nibh libero
  • Porta ac consectetur ac
  • Vestibulum at eros

Usage Notes

This is how the element is used:

Copy Source
  1. <ul class="list-group">
  2. <li class="list-group-item">
  3. <span class="badge">14</span>
  4. Cras justo odio
  5. </li>
  6. <li class="list-group-item">
  7. <span class="badge">2</span>
  8. Dapibus ac facilisis in
  9. </li>
  10. <li class="list-group-item">
  11. <span class="badge">1</span>
  12. Morbi leo risus
  13. </li>
  14. </ul>
  15. <h3>With links</h3>
  16. <div class="list-group">
  17. <a href="#" class="list-group-item active">
  18. Cras justo odio
  19. </a>
  20. <a href="#" class="list-group-item">Dapibus ac facilisis in</a>
  21. <a href="#" class="list-group-item">Morbi leo risus</a>
  22. <a href="#" class="list-group-item">Porta ac consectetur ac</a>
  23. <a href="#" class="list-group-item">Vestibulum at eros</a>
  24. </div>
  25. <h3>Contextual classes</h3>
  26. <ul class="list-group">
  27. <li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li>
  28. <li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li>
  29. <li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li>
  30. <li class="list-group-item list-group-item-danger">Vestibulum at eros</li>
  31. </ul>

media object

Example

Default

media-object

Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
media-object

Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
media-object

Nested media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

Media List

  • media-object

    Media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

    media-object

    Nested media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
    media-object

    Nested media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
    media-object

    Nested media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
  • media-object

    Media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

Usage Notes

This is how the element is used:

Copy Source
  1. <h3>Default</h3>
  2. <div class="media">
  3. <a class="pull-left" href="#">
  4. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  5. </a>
  6. <div class="media-body">
  7. <h4 class="media-heading">Media heading</h4>
  8. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
  9. </div>
  10. </div>
  11. <div class="media">
  12. <a class="pull-left" href="#">
  13. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  14. </a>
  15. <div class="media-body">
  16. <h4 class="media-heading">Media heading</h4>
  17. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
  18. <div class="media">
  19. <a class="pull-left" href="#">
  20. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  21. </a>
  22. <div class="media-body">
  23. <h4 class="media-heading">Nested media heading</h4>
  24. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <h3>Media List</h3>
  30. <ul class="media-list">
  31. <li class="media">
  32. <a class="pull-left" href="#">
  33. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  34. </a>
  35. <div class="media-body">
  36. <h4 class="media-heading">Media heading</h4>
  37. <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.</p>
  38. <div class="media">
  39. <a class="pull-left" href="#">
  40. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  41. </a>
  42. <div class="media-body">
  43. <h4 class="media-heading">Nested media heading</h4>
  44. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
  45. <div class="media">
  46. <a class="pull-left" href="#">
  47. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  48. </a>
  49. <div class="media-body">
  50. <h4 class="media-heading">Nested media heading</h4>
  51. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="media">
  57. <a class="pull-left" href="#">
  58. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  59. </a>
  60. <div class="media-body">
  61. <h4 class="media-heading">Nested media heading</h4>
  62. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
  63. </div>
  64. </div>
  65. </div>
  66. </li>
  67. <li class="media">
  68. <a class="pull-right" href="#">
  69. <img class="media-object" src="http://www.placehold.it/64x64" alt="media-object">
  70. </a>
  71. <div class="media-body">
  72. <h4 class="media-heading">Media heading</h4>
  73. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
  74. </div>
  75. </li>
  76. </ul>
Copy Source
  1. <nav class="navbar navbar-default" role="navigation">
  2. <div class="container-fluid">
  3. <!-- Brand and toggle get grouped for better mobile display -->
  4. <div class="navbar-header">
  5. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  6. <span class="sr-only">Toggle navigation</span>
  7. <span class="icon-bar"></span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. </button>
  11. <a class="navbar-brand" href="#">Brand</a>
  12. </div>
  13. <!-- Collect the nav links, forms, and other content for toggling -->
  14. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  15. <ul class="nav navbar-nav">
  16. <li class="active"><a href="#">Link</a></li>
  17. <li><a href="#">Link</a></li>
  18. <li class="dropdown">
  19. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
  20. <ul class="dropdown-menu">
  21. <li><a href="#">Action</a></li>
  22. <li><a href="#">Another action</a></li>
  23. <li><a href="#">Something else here</a></li>
  24. <li class="divider"></li>
  25. <li><a href="#">Separated link</a></li>
  26. <li class="divider"></li>
  27. <li><a href="#">One more separated link</a></li>
  28. </ul>
  29. </li>
  30. </ul>
  31. <form class="navbar-form navbar-left" role="search">
  32. <div class="form-group">
  33. <input type="text" class="form-control" placeholder="Search">
  34. </div>
  35. <button type="submit" class="btn btn-default">Submit</button>
  36. </form>
  37. <ul class="nav navbar-nav navbar-right">
  38. <li><a href="#">Link</a></li>
  39. <li class="dropdown">
  40. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
  41. <ul class="dropdown-menu">
  42. <li><a href="#">Action</a></li>
  43. <li><a href="#">Another action</a></li>
  44. <li><a href="#">Something else here</a></li>
  45. <li class="divider"></li>
  46. <li><a href="#">Separated link</a></li>
  47. </ul>
  48. </li>
  49. </ul>
  50. </div><!-- /.navbar-collapse -->
  51. </div><!-- /.container-fluid -->
  52. </nav>

navs

Usage Notes

This is how the element is used:

Copy Source
  1. <h3>Tabs</h3>
  2. <ul class="nav nav-tabs">
  3. <li class="active"><a href="#">Home</a></li>
  4. <li><a href="#">Profile</a></li>
  5. <li><a href="#">Messages</a></li>
  6. <li class="disabled"><a href="#">Disabled</a></li>
  7. </ul>
  8. <h4>Justified Tabs</h4>
  9. <ul class="nav nav-tabs nav-justified">
  10. <li class="active"><a href="#">Home</a></li>
  11. <li><a href="#">Profile</a></li>
  12. <li><a href="#">Messages</a></li>
  13. </ul>
  14. <h3>Pills</h3>
  15. <ul class="nav nav-pills">
  16. <li class="active"><a href="#">Home</a></li>
  17. <li><a href="#">Profile</a></li>
  18. <li><a href="#">Messages</a></li>
  19. </ul>
  20. <h4>Stacked Pills</h4>
  21. <ul class="nav nav-pills nav-stacked">
  22. <li class="active"><a href="#">Home</a></li>
  23. <li><a href="#">Profile</a></li>
  24. <li><a href="#">Messages</a></li>
  25. </ul>
  26. <h3>Tabs with dropdowns</h3>
  27. <ul class="nav nav-tabs">
  28. <li class="active"><a href="#">Home</a></li>
  29. <li><a href="#">Help</a></li>
  30. <li class="dropdown">
  31. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  32. Dropdown <span class="caret"></span>
  33. </a>
  34. <ul class="dropdown-menu" role="menu">
  35. <li><a href="#">Action</a></li>
  36. <li><a href="#">Another action</a></li>
  37. <li><a href="#">Something else here</a></li>
  38. <li class="divider"></li>
  39. <li><a href="#">Separated link</a></li>
  40. </ul>
  41. </li>
  42. </ul>

page header

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <div class="page-header">
  2. <h1>Example page header <small>Subtext for header</small></h1>
  3. </div>

pager

Usage Notes

This is how the element is used:

Copy Source
  1. <ul class="pager">
  2. <li><a href="#">Previous</a></li>
  3. <li><a href="#">Next</a></li>
  4. </ul>
  5. <ul class="pager">
  6. <li class="previous"><a href="#">&larr; Older</a></li>
  7. <li class="next"><a href="#">Newer &rarr;</a></li>
  8. </ul>

pagination

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <ul class="pagination pagination-lg">
  2. <li> <a href="#">Prev</a> </li>
  3. <li class="active"> <a href="#">1</a> </li>
  4. <li> <a href="#">2</a> </li>
  5. <li> <a href="#">3</a> </li>
  6. <li> <a href="#">4</a> </li>
  7. <li> <a href="#">Next</a> </li>
  8. </ul>
  9. <ul class="pagination">
  10. <li> <a href="#">Prev</a> </li>
  11. <li class="active"> <a href="#">1</a> </li>
  12. <li> <a href="#">2</a> </li>
  13. <li> <a href="#">3</a> </li>
  14. <li> <a href="#">4</a> </li>
  15. <li> <a href="#">Next</a> </li>
  16. </ul>
  17. <ul class="pagination pagination-sm">
  18. <li> <a href="#">Prev</a> </li>
  19. <li class="active"> <a href="#">1</a> </li>
  20. <li> <a href="#">2</a> </li>
  21. <li> <a href="#">3</a> </li>
  22. <li> <a href="#">4</a> </li>
  23. <li> <a href="#">Next</a> </li>
  24. </ul>

panels

Example

Panel title

Panel content

Contextual classes

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Panel title

Panel content

Usage Notes

This is how the element is used:

Copy Source
  1. <div class="panel panel-default">
  2. <div class="panel-heading">
  3. <h3 class="panel-title">Panel title</h3>
  4. </div>
  5. <div class="panel-body">
  6. Panel content
  7. </div>
  8. <div class="panel-footer">Panel footer</div>
  9. </div>
  10. <h3>Contextual classes</h3>
  11. <div class="panel panel-primary">
  12. <div class="panel-heading">
  13. <h3 class="panel-title">Panel title</h3>
  14. </div>
  15. <div class="panel-body">
  16. Panel content
  17. </div>
  18. </div>
  19. <div class="panel panel-success">
  20. <div class="panel-heading">
  21. <h3 class="panel-title">Panel title</h3>
  22. </div>
  23. <div class="panel-body">
  24. Panel content
  25. </div>
  26. </div>
  27. <div class="panel panel-info">
  28. <div class="panel-heading">
  29. <h3 class="panel-title">Panel title</h3>
  30. </div>
  31. <div class="panel-body">
  32. Panel content
  33. </div>
  34. </div>
  35. <div class="panel panel-warning">
  36. <div class="panel-heading">
  37. <h3 class="panel-title">Panel title</h3>
  38. </div>
  39. <div class="panel-body">
  40. Panel content
  41. </div>
  42. </div>
  43. <div class="panel panel-danger">
  44. <div class="panel-heading">
  45. <h3 class="panel-title">Panel title</h3>
  46. </div>
  47. <div class="panel-body">
  48. Panel content
  49. </div>
  50. </div>

thumbnails

Example

Usage Notes

This is how the element is used:

Copy Source
  1. <div class="row">
  2. <div class="col-xs-6 col-md-3">
  3. <a href="#" class="thumbnail">
  4. <img data-src="holder.js/100%x180" alt="100%x180" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iMTgwIj48cmVjdCB3aWR0aD0iMTcxIiBoZWlnaHQ9IjE4MCIgZmlsbD0iI2VlZSI+PC9yZWN0Pjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9Ijg1LjUiIHk9IjkwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjEycHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+MTcxeDE4MDwvdGV4dD48L3N2Zz4=" style="height: 180px; width: 100%; display: block;">
  5. </a>
  6. </div>
  7. <div class="col-xs-6 col-md-3">
  8. <a href="#" class="thumbnail">
  9. <img data-src="holder.js/100%x180" alt="100%x180" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iMTgwIj48cmVjdCB3aWR0aD0iMTcxIiBoZWlnaHQ9IjE4MCIgZmlsbD0iI2VlZSI+PC9yZWN0Pjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9Ijg1LjUiIHk9IjkwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjEycHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+MTcxeDE4MDwvdGV4dD48L3N2Zz4=" style="height: 180px; width: 100%; display: block;">
  10. </a>
  11. </div>
  12. <div class="col-xs-6 col-md-3">
  13. <a href="#" class="thumbnail">
  14. <img data-src="holder.js/100%x180" alt="100%x180" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iMTgwIj48cmVjdCB3aWR0aD0iMTcxIiBoZWlnaHQ9IjE4MCIgZmlsbD0iI2VlZSI+PC9yZWN0Pjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9Ijg1LjUiIHk9IjkwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjEycHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+MTcxeDE4MDwvdGV4dD48L3N2Zz4=" style="height: 180px; width: 100%; display: block;">
  15. </a>
  16. </div>
  17. <div class="col-xs-6 col-md-3">
  18. <a href="#" class="thumbnail">
  19. <img data-src="holder.js/100%x180" alt="100%x180" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iMTgwIj48cmVjdCB3aWR0aD0iMTcxIiBoZWlnaHQ9IjE4MCIgZmlsbD0iI2VlZSI+PC9yZWN0Pjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9Ijg1LjUiIHk9IjkwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjEycHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+MTcxeDE4MDwvdGV4dD48L3N2Zz4=" style="height: 180px; width: 100%; display: block;">
  20. </a>
  21. </div>
  22. </div>