13.1 Typography - Alignment Alignment
Bootstrap comes with .text-*-left
.text-*-right
.text-*-center
for
responsive text alignment
13.2 Typography - Colors Text colors
.text-white
.text-white
.text-transparent
.text-transparent
13.3 Typography - Colors Deprecated Text Colors Deprecated
13.4 Typography - Decoration Text decoration on hover
.hover-underline
.hover-no-decoration
<a href="/" class="[modifier class]">
Lorem ipsum
</a>
13.5 Typography - Headings Headings
H1. Heading 1
H2. Heading 2
H3. Heading 3
H4. Heading 4
H5. Heading 5
H6. Heading 6
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt est deleniti harum culpa iure necessitatibus aperiam sunt sed quas laboriosam perferendis, ad atque ab velit ratione tempore quis, asperiores nostrum.
Next level scenester High Life, Portland selfies 8-bit chia butcher put a bird on it seitan. Small batch bespoke post-ironic yr, skateboard health goth Truffaut banh mi viral put a bird on it fingerstache squid fashion axe cardigan chambray. Try-hard farm-to-table butcher, retro meh actually listicle beard viral four loko swag wolf. Try-hard farm-to-table roof party, ethical next level kale chips umami.
<div class="bg-frost">
<p class="text-light text-shadow">
Next level scenester High Life, Portland selfies 8-bit chia butcher put
a bird on it seitan. Small batch bespoke post-ironic yr, skateboard
health goth Truffaut banh mi viral put a bird on it fingerstache squid
fashion axe cardigan chambray. Try-hard farm-to-table butcher, retro meh
actually listicle beard viral four loko swag wolf. Try-hard
farm-to-table roof party, ethical next level kale chips umami.
</p>
</div>
13.7 Typography - Line Height Line height variation
markup:
13.8 Typography - Lists Lists
Unordered list
- 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 List
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Unstyled list
- Use
.list-unstyled
- This is a list, but there's no styling
Inline list
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
Description List
Add .dl-horizontal
to your <dl>
tags for a horizontal description list
with option .text-truncate
to truncate text with an ellipsis
- 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.
- Truncated term is truncated
- Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
13.10 Typography - Sizes Text sizes
.text-xsmall
-$font-size-xs
.text-small
-$font-size-sm
.text-base
-$font-size-root
.text-large
-$font-size-lg
.text-xlarge
-$font-size-xl
.text-xxlarge
-$font-size-xxl
This is xsmall text
This is small text
This is base size text
This is large text
This is xlarge text
This is xxlarge text
13.11 Typography - Text wrapping Text wrapping
Use .break-word
for word-wrap: break word
.
Use .nowrap
for white-space: nowrap
<div class="[modifier class]">
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Sapiente consequuntur accusantium, sunt officia dolor
deserunt fugit blanditiis, praesentium, dolores aut ipsa
nesciunt voluptate dolorem sint, doloribus iusto sequi eos.
Earum!
</div>
13.13 Typography - Weight Text weight
- The default weight is book
.text-thin
- 300 weight text.text-book
- 500 weight text.text-bold
- 700 weight text