Typography
Utilities for controlling the position of bullets and numbers in lists.
Class | Styles |
---|---|
list-inside | list-style-position: inside; |
list-outside | list-style-position: outside; |
Use utilities like list-inside
and list-outside
to control the position of the markers and text indentation in a list:
Prefix a list-style-position
utility with a breakpoint variant like md:
to only apply the utility at medium screen sizes and above:
<ul class="list-outside md:list-inside ..."> <!-- ... --></ul>
Learn more about using variants in the variants documentation.