Hướng dẫn text-decoration bootstrap 5
Text alignmentEasily 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. Show 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
Prevent text from wrapping with a This text should overflow the parent.
Word breakPrevent long strings of text from breaking your components' layout by using mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Text transformTransform text in components with text capitalization classes. Lowercased text. Uppercased text. CapiTaliZed text.
Note how Font sizeQuickly change the .fs-1 text .fs-2 text .fs-3 text .fs-4 text .fs-5 text .fs-6 text
Customize your available Font weight and italicsQuickly change the 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 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. 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. 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. 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.
MonospaceChange a selection to our monospace font stack with This is in monospace
Reset colorReset a text or link’s color with
Text decorationDecorate text in components with text decoration classes.
SassVariables
MapsFont-size utilities are generated from this map, in combination with our utilities API.
Utilities APIFont and text utilities are declared in our utilities API in |