CSS Utility Classes Text
Use common text utilities to control alignment, wrapping, weight, and more.
Text Alignment
Use text alignment utilities to easily align text in components.
_text-align:justifyor_text:justify_text-align:leftor_text:left_text-align:centeror_text:center_text-align:rightor_text:right
Text Wrapping and Overflow
You can control text wrapping and overflow with the following utilities:
_white-space:normalor_text:wrap_white-space:nowrapor_text:nowrap_text:truncate
Text wrapping utilities also come with breakpoint-specific classes, same as text alignment classes.
Text Wrap
You can wrap text using the _white-space:normal utility class.
Text Nowrap
You can prevent text from wrapping with a _white-space:nowrap utility class.
Text Truncate
For longer content, adding the _text:truncate utility class will truncate the text with an ellipsis. Truncation requires display: inline-block or display: block.
Word Break
Prevent long strings of text from breaking your layout by using _text:break-word. Behind the scenes, it uses overflow-wrap: break-word and word-break: break-word for IE & Edge compatibility.
_text:break-word
Text Transform
You can transform text in components using text capitalization utility classes.
_text-transform:lowercaseor_text:lowercase_text-transform:uppercaseor_text:uppercase_text-transform:capitalizeor_text:capitalize
Font Weight
Font Weight utility classes enable you to emphasize or de-emphasize text by controlling its boldness. These utilities contribute to establishing a clear text hierarchy, improving the overall readability of your content.
_font-weight:extralightor_text:extralight_font-weight:lightor_text:light_font-weight:normalor_text:normal_font-weight:semiboldor_text:semibold_font-weight:boldor_text:bold_font-weight:blackor_text:black_font-weight:lighteror_text:lighter_font-weight:bolderor_text:bolder
Font Style
Italic utility classes allow you to style text with an italic font style. This can be particularly useful for emphasizing certain words or phrases, or for distinguishing between different types of content, such as quotes or citations.
_font-style:italicor_text:italic
Font Size
Font size utilities provide a convenient way to increase or decrease the font size of your content.
_font-size:xsor_text:xs_font-size:smor_text:sm_font-size:mdor_text:md_font-size:lgor_text:lg_font-size:xlor_text:xl
Monospace
Change your text to be monospaced using the _font-family:monospace utility.
_font-family:monospaceor_text:monospace
Text Decoration
You can easily remove or add text decoration using the text decoration utility.
_text-decoration:none_text-decoration:underline_text-decoration:line-through_text-decoration:overline_text-decoration:inherit
Weak Text
Make your text stand out less using the weak or muted text color utility.
_text:weakor_color:weak_text:weakeror_color:weaker_text:weakestor_color:weakest_text:mutedor_color:muted
Text Reset
Make your text or link inherit the parent's color using the text reset utility.
_text:reset
Text Hide
You can make your text disappear without hiding the element by using the text-indent: -10000px trick. This is available using the following utility class:
_text:hide
Lists
You can use list utilities to obtain inline and unstyled lists.
_list:inlineorlist -inline_list:unstyledorlist -unstyled