Easily realign text to components with text alignment classes. For start, end, and center alignment, responsive classes are available that use the same viewport width breakpoints as the grid system. Start aligned text on all viewport sizes. Center aligned text on all viewport sizes. End aligned text on all viewport sizes. Start aligned text on viewports sized SM (small) or wider. Start aligned text on viewports sized MD (medium) or wider. Start aligned text on viewports sized LG (large) or wider. Start aligned text on viewports sized XL (extra-large) or wider.
Note that we don’t provide utility classes for justified text. While, aesthetically, justified text might look more appealing, it does make word-spacing more random and therefore harder to read. Text wrapping and overflowWrap text with a 4 class.
Prevent text from wrapping with a 5 class.This text should overflow the parent.
Word breakPrevent long strings of text from breaking your components' layout by using 6 to set 7 and 8. We use 9 instead of the more common 0 for wider browser support, and add the deprecated 8 to avoid issues with flex containers.mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Text transformTransform text in components with text capitalization classes. Lowercased text. Uppercased text. CapiTaliZed text.
Note how 2 only changes the first letter of each word, leaving the case of any other letters unaffected.Font sizeQuickly change the 3 of text. While our heading classes (e.g., 4– 5) apply 3, 7, and 8, these utilities only apply 3. Sizing for these utilities matches HTML’s heading elements, so as the number increases, their size decreases..fs-1 text .fs-2 text .fs-3 text .fs-4 text .fs-5 text .fs-6 text
Customize your available 3s by modifying the 1 Sass map.Font weight and italicsQuickly change the 7 or 3 of text with these utilities. 3 utilities are abbreviated as 5 and 7 utilities are abbreviated as 7.Bold text. Bolder weight text (relative to the parent element). Normal weight text. Light weight text. Lighter weight text (relative to the parent element). Italic text. Text with normal font style
Line heightChange the line height with 8 utilities.This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API. |