Text Align
Utilities for applying text-align
to an element.
Quick reference
Class | Property |
---|---|
text-left | text-align: left; |
text-center | text-align: center; |
text-right | text-align: right; |
text-justify | text-align: justify; |
Usage
Use the text-{key}
class for setup the text-align
.
<div class="text-left">
<!-- ... -->
</div>
Applying conditionally
Breakpoints and media queries
You can also control the responsive breakpoint with variant class modifiers. For example lg:text-center
will be only apply on large screens size and above.
<div class="text-left lg:text-center">
<!-- ... -->
</div>
Customization
Extend your theme
By default, the configuration provides a handful of general purpose text-align
type utilities. You can easily filter the default scales using the Sass configuration.
@use "lasco" with (
$extend: (
"text-align": (
center
)
)
);
Disabled
You can easily disable the properties you don't need to use.
@use "lasco" with (
$extend: (
"text-align": false
)
);