List Style Position
Controls how bullets and numbers are positioned in lists.
Utility | Properties |
---|---|
lsp-i | list-style-position: inside; |
lsp-o | list-style-position: outside; |
Inside
This example sets the list style position to inside. The list item markers will be placed inside the list itemβs content area, affecting the text alignment.
- Butter π§
- Egg π₯
- Milk π₯
<div class="bg-indigo-1 p-4 rad-1"> <ul class="bg-white lsp-i lst-d p-4 pl-6 rad-1"> <li class="tc-lead">Butter π§</li> <li class="tc-lead">Egg π₯</li> <li class="tc-lead">Milk π₯</li> </ul></div>
Outside
This example sets the list style position to outside. The list item markers will be placed outside the list itemβs content area, allowing the text to align normally.
- Butter π§
- Egg π₯
- Milk π₯
<div class="bg-indigo-1 p-4 rad-1"> <ul class="bg-white lsp-o lst-d p-4 pl-6 rad-1"> <li>Butter π§</li> <li>Egg π₯</li> <li>Milk π₯</li> </ul></div>
Conditional styles
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
You can combine responsive breakpoints like sm:lsp-*
,md:lsp-*
, lg:lsp-*
, and xxl:lsp-*
allows targeting specific utilities in different viewports.
<div class="lsp-o md:lsp-i ..."></div>
Alternatively, you can apply :hover
by using h:lsp-*
utility to override elements and change their values when hovering over them.
<div class="lsp-o h:lsp-i ..."></div>