List Style Type

Set the marker style of a list.

Widely available

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

Chrome
Edge
Firefox
Safari

Usage

Disc

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>
  • Butter 🧈
  • Egg 🥚
  • Milk 🥛
<ul class="lsp-o lst-c">
<li class="c-slate">Butter 🧈</li>
<li class="c-slate">Egg 🥚</li>
<li class="c-slate">Milk 🥛</li>
</ul>

Square

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

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:lst-*
Small≥640px
md:lst-*
Medium≥768px
lg:lst-*
Large≥1024px
xxl:lst-*
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:lst-*