TypographyList Style Position

List Style Position

Control the position of list item markers.

Widely available

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

Chrome
Edge
Firefox
Safari

Usage

Outside

Initial value

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

Inside

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

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:lsp-[value]
Small≥640px
md:lsp-[value]
Medium≥768px
lg:lsp-[value]
Large≥1024px
xxl:lsp-[value]
Extra Large≥1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:lsp-[value]