All HTML headings, <h1> through <h6> are available.

h1. Heading 1

h2. Heading 2

h3. Heading 3

h4. Heading 4

h5. Heading 5
h6. Heading 6

Body copy

Bootstrap's global default font-size is 14px, with a line-height of 20px. This is applied to the <body> and all paragraphs. In addition, <p> (paragraphs) receive a bottom margin of half their line-height (10px by default).

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.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.

Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

<p>...</p>

Lead body copy

Make a paragraph stand out by adding .lead.

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

<p class="lead">...</p>

Built with Less

The typographic scale is based on two LESS variables in variables.less: @baseFontSize and @baseLineHeight. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.


Emphasis

Make use of HTML's default emphasis tags with lightweight styles.

<small>

For de-emphasizing inline or blocks of text, use the small tag.

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

<p>
         <small>This line of text is meant to be treated as fine print.</small>
       </p>

Bold

For emphasizing a snippet of text with a heavier font-weight.

The following snippet of text is rendered as bold text.

<strong>rendered as bold text</strong>

Italics

For emphasizing a snippet of text with italics.

The following snippet of text is rendered as italicized text.

<em>rendered as italicized text</em>

Heads up! Feel free to use <b> and <i> in HTML5. <b> is meant to highlight words or phrases without conveying additional importance while <i> is mostly for voice, technical terms, etc.

Emphasis classes

Convey meaning through color with a handful of emphasis utility classes.

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

Etiam porta sem malesuada magna mollis euismod.

Donec ullamcorper nulla non metus auctor fringilla.

Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.

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

<p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
<p class="text-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p>
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>

Use the <span> tag with .Dropcap, .ytDropcap1, .ytDropcap2 classes.

This is a sample text with Dropcap.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In tristique sem vel turpis egestas cursus. Vivamus vehicula ligula non orci sollicitudin iaculis in nec enim...

Use <p><span class="Dropcap">t</span>his is a sample text with Dropcap.</p>

This is a sample text with Dropcap.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In tristique sem vel turpis egestas cursus. Vivamus vehicula ligula non orci sollicitudin iaculis in nec enim...

Use <p class="ytDropcap1"><span class="ytDropcap1">t</span>his is a sample text with Dropcap.</p>

This is a sample text with Dropcap.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In tristique sem vel turpis egestas cursus. Cras pretium commodo velit non convallis. Sed ornare, arcu vitae sagittis elementum, metus lacus pulvinar ligula, non gravida elit sapien vestibulum odio. Pellentesque eget quam lectus, in fermentum urnaVivamus vehicula ligula non orci sollicitudin iaculis in nec enim...

Use <p class="ytDropcap2"><span class="ytDropcap2">t</span>his is a sample text with Dropcap.</p>

Inline

Wrap inline snippets of code with <code>.

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

Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.

Basic block

Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

   <p>Sample text here...</p>
  1. <pre>
  2. &lt;p&gt;Sample text here...&lt;/p&gt;
  3. </pre>

Prettify

To add colored syntax highlight to the <pre> tag, then use the .prettyprint class or the .prettyprint linenums class.

<?php /** Begin Debug **/ if ($yt->countModules('debug')) : ?>
    <div id="yt-debug">
        <div class="yt-container">
            <php echo $yt->displayModules('debug','standard'); ?>
            <div class="clear"></div>
        </div>
    </div>
<?php /** End Debug **/ endif; ?>
<?php /** Begin Debug **/ if ($yt->countModules('debug')) : ?>
    <div id="yt-debug">
        <div class="yt-container">
            <php echo $yt->displayModules('debug','standard'); ?>
            <div class="clear"></div>
        </div>
    </div>
<?php /** End Debug **/ endif; ?><

For quoting blocks of content from another source within your document.

Default blockquote

Wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.

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

<blockquote>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. </p>
</blockquote>

Blockquote options

Style and content changes for simple variations on a standard blockquote.

Naming a source

Add <small> tag for identifying the source. Wrap the name of the source work in <cite>.

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

Someone famous in Source Title
<blockquote>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. </p>
    <small>Someone famous <cite title="Source Title">Source Title</cite></small>
</blockquote>
Lorem ipsum dolor amet, consectetur adipiscing elit. Etiam rutrum blandit purus, vitae pharetra odio interdum sit amet. Integer semper egestas
Someone famous Source Title
<blockquote class="yt-blockquote1">
    Lorem ipsum dolor amet, consectetur adipiscing...
</blockquote>
<span class="icon-user">
    Someone famous Source Title
</span>
Lorem ipsum dolor amet, consectetur adipiscing elit. Etiam rutrum blandit purus, vitae pharetra odio interdum sit amet. Integer semper egestas
Someone famous Source Title
<blockquote class="yt-blockquote2">
    Lorem ipsum dolor amet, consectetur adipiscing...
</blockquote>
<span class="icon-user">
    Someone famous Source Title
</span>

Use the <span> tag with .ytHighlight1, .ytHighlight2, .ytHighlight3 or .ytHighlight4 classes.

This is a highlight phrase Lorem ipsum dolor amet, consectetur adipiscing elit.

This is a highlight phrase Lorem ipsum dolor amet, consectetur adipiscing elit.

This is a highlight phrase Lorem ipsum dolor amet, consectetur adipiscing elit.

This is a highlight phrase Lorem ipsum dolor amet, consectetur adipiscing elit.

<p>This is a<span class="ytHighlight1">highlight phrase. </span> Lorem ipsum dolor amet... </p>
<p>This is a<span class="ytHighlight2">highlight phrase. </span> Lorem ipsum dolor amet... </p>
<p>This is a<span class="ytHighlight3">highlight phrase. </span> Lorem ipsum dolor amet... </p>
<p>This is a<span class="ytHighlight4">highlight phrase. </span> Lorem ipsum dolor amet... </p>

Unordered lists

A list of items in which the order does not explicitly matter.

  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytBullet1">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytBullet2">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytBullet3">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytLine1">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytCircle1">
   <li><span>...</span></li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytSquare1">
   <li><span>...</span></li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytLine2">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytCircle2">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytSquare2">
   <li>...</li>
</ul>

Ordered lists

A list of items in which the order does explicitly matter.

  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytRoman">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytDec">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
  • Lorem ipsum dolor sit amet.
<ul class="ytAlpha">
   <li>...</li>
</ul>

numBlocks

A list of items in which the order does explicitly matter.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<ul class="ytnumblocks1">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<ul class="ytnumblocks2">
   <li>...</li>
</ul>
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<ul class="ytnumblocks3">
   <li>...</li>
</ul>

Default styles

For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table">
    …
</table>

Optional classes

Add any of the following classes to the .table base class.

.table-striped

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-striped">
    …
</table>

Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).


.table-bordered

Add borders and rounded corners to the table.

# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-bordered">
    …
</table>

.table-hover

Enable a hover state on table rows within a <tbody>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-hover">
    …
</table>

.table-condensed

Makes tables more compact by cutting cell padding in half.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-condensed">
    …
</table>

Optional row classes

Use contextual classes to color table rows.

Class Description
.success Indicates a successful or positive action.
.error Indicates a dangerous or potentially negative action.
.warning Indicates a warning that might need attention.
.info Used as an alternative to the default styles.
# Product Payment Taken Status
1 TB - Monthly 01/04/2012 Approved
2 TB - Monthly 02/04/2012 Declined
3 TB - Monthly 03/04/2012 Pending
4 TB - Monthly 04/04/2012 Call in to confirm
...
<tr class="success">
        <td>1</td>>
        <td>TB - Monthly</td>
        <td>01/04/2012</td>
        <td>Approved</td>
</tr>
...
Template Settings
Select color sample for all params
Red Blue Green Black Yellow
Background Color
Text color
Google font
Body font-size
Body font-family
Direction