TypographyList Style Position

List Style Position

Controls how bullets and numbers are positioned in lists.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
lsp-ilist-style-position: inside;
lsp-olist-style-position: outside;

Outside

Initial value

The list item markers will be placed outside the list item's content area, allowing the text to align normally.

  • Butter 🧈
  • Egg 🥚
  • Milk 🥛
<ul class="lsp-o lst-d">
<li class="tc-slate">Butter 🧈</li>
<li class="tc-slate">Egg 🥚</li>
<li class="tc-slate">Milk 🥛</li>
</ul>

Inside

The list item markers will be placed inside the list item's content area, affecting the text alignment.

  • Butter 🧈
  • Egg 🥚
  • Milk 🥛
<ul class="lsp-i lst-d">
<li class="tc-slate">Butter 🧈</li>
<li class="tc-slate">Egg 🥚</li>
<li class="tc-slate">Milk 🥛</li>
</ul>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:lsp-*, md:lsp-*, lg:lsp-*, and xxl:lsp-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:lsp-* utility to override elements and change their values when hovering over them.