description:Documentation and examples for common text utilities to control alignment, wrapping, weight, and more.
---
## Text alignment
### Headings
Easily realign text to components with text alignment classes.
{% example %}
{% for i in (1..6) %}<h{{i}}>H{{ i }} Heading</h{{i}}>
{% endfor %}
{% endexample %}
### Paragraphs
{% example %}
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
<p>At vero eos et accusam et justo duo dolores et ea rebum.</p>
### Optimized for Asian, African, and Middle Eastern alphabets
{% example %}
<pclass="text-left">Left aligned text on all viewport sizes.</p>
<pclass="text-center">Center aligned text on all viewport sizes.</p>
<pclass="text-right">Right aligned text on all viewport sizes.</p>
<pclass="text-justify">Both aligned text on all viewport sizes. Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus.</p>
<h5>Chinese</h5>
<p>汉字</p>
<h5>Japanese</h5>
<p>日本語の表記体系</p>
<h5>Korean</h5>
<p>한글</p>
<h5>Cyrillic</h5>
<p>Кириллица</p>
<h5>Greek</h5>
<p>Eλληνική</p>
<h5>Georgian</h5>
<p>ქართული დამწერლობა</p>
<h5>Armenian</h5>
<p>Հայերենի այբուբեն</p>
<h5>Arabic</h5>
<p>الحروف العربية</p>
<h5>Hebrew</h5>
<p>אלפבית עברי</p>
<h5>Thai</h5>
<p>อักษรไทย</p>
{% endexample %}
## Text transform
### Text transform
Transform text in components with text capitalization classes.
...
...
@@ -25,7 +84,7 @@ Transform text in components with text capitalization classes.
<pclass="text-capitalize">Capitalized text.</p>
{% endexample %}
## Letter spacing
### Letter spacing
Utilities for controlling the tracking (letter spacing) of an element.
...
...
@@ -35,7 +94,7 @@ Utilities for controlling the tracking (letter spacing) of an element.
<pclass="tracking-wide">Lorem ipsum dolor sit amet. Wide letter spacing.</p>
{% endexample %}
## Line Height
### Line Height
Utilities for controlling the leading (line height) of an element.
...
...
@@ -46,7 +105,7 @@ Utilities for controlling the leading (line height) of an element.
<pclass="leading-loose">Lorem ipsum dolor sit amet.<br>Dolor sit amet.</p>
{% endexample %}
## Antialiasing
### Antialiasing
Utilities for controlling the font smoothing of an element.
...
...
@@ -57,7 +116,7 @@ Use the `.antialiased` utility to render text using subpixel antialiasing or use
<divclass="subpixel-antialiased">Text without antialiasing</div>
{% endexample %}
## Markdown elements
### Markdown elements
When you can't use the CSS classes you want, or when you just want to directly use HTML tags, use `.markdown` as container. It can handle almost any HTML tag.