Skip to main content

Tailwind CSS List Style Cheatsheet

Complete guide to Tailwind's list style utilities for controlling list markers and their positioning.
Click any class to copy it to your clipboard.

Quick Reference

ClassCSSDescription
list-nonelist-style-type: noneRemoves all list markers (bullets or numbers).
list-disclist-style-type: discUses a filled circle (bullet point) as the list marker.
list-decimallist-style-type: decimalUses decimal numbers (1, 2, 3...) as the list marker.
list-insidelist-style-position: insidePlaces the marker inside the content flow. Text wraps under the marker.
list-outsidelist-style-position: outsidePlaces the marker outside the content flow (default). Text aligns separately from the marker.

List Style Type

Control the type of list marker (bullet, number, or none) using these utilities.

list-none

list-style-type: none

  • First item in the list
  • Second item with more text
  • Third item example

Removes all list markers (bullets or numbers).

list-disc

list-style-type: disc

  • First item in the list
  • Second item with more text
  • Third item example

Uses a filled circle (bullet point) as the list marker.

list-decimal

list-style-type: decimal

  • First item in the list
  • Second item with more text
  • Third item example

Uses decimal numbers (1, 2, 3...) as the list marker.

List Style Position

Control where the list marker is positioned relative to the list item content. The difference is most visible when list items wrap to multiple lines.

list-inside

list-style-position: inside

  • Short item
  • This is a much longer item that will wrap to multiple lines to demonstrate how the list marker position affects text alignment
  • Another item

Places the marker inside the content flow. Text wraps under the marker.

list-outside

list-style-position: outside

  • Short item
  • This is a much longer item that will wrap to multiple lines to demonstrate how the list marker position affects text alignment
  • Another item

Places the marker outside the content flow (default). Text aligns separately from the marker.

Visual Comparison: Inside vs Outside

Side-by-side comparison showing how text wrapping differs between list-inside and list-outside.

list-inside list-disc
  • Notice how this longer text wraps underneath the bullet point, not aligned with the text above.
  • Short item
  • The marker is inside the content box.
list-outside list-disc
  • Notice how this longer text wraps and stays aligned with the text above, not under the bullet.
  • Short item
  • The marker is outside the content box.

Common Combinations

You can combine list style type and position utilities for different effects.

list-disc list-outside
  • First item in the list
  • Second item with more text
  • Third item example

Classic bullet list style

list-decimal list-inside
  1. First item in the list
  2. Second item with more text
  3. Third item example

Numbered list with inline markers

list-decimal list-outside
  1. First item in the list
  2. Second item with more text
  3. Third item example

Numbered list with aligned text

list-none
  • First item in the list
  • Second item with more text
  • Third item example

Clean list without markers

Common Use Cases

Navigation Menu

list-none
<ul class="list-none">
  <li><a href="/">Home</a></li>
  <li><a href="/about">About</a></li>
  <li><a href="/contact">Contact</a></li>
</ul>

Feature List

list-disc list-inside
<ul class="list-disc list-inside">
  <li>Fast performance</li>
  <li>Easy to use</li>
  <li>Fully responsive</li>
</ul>

Step-by-Step Guide

list-decimal list-outside
<ol class="list-decimal list-outside pl-5">
  <li>Install the package</li>
  <li>Configure settings</li>
  <li>Start the server</li>
</ol>

Card List Items

list-none with custom icons
<ul class="list-none space-y-2">
  <li class="flex items-center gap-2">
    <CheckIcon /> Item one
  </li>
  <li class="flex items-center gap-2">
    <CheckIcon /> Item two
  </li>
</ul>

Custom List Markers with Arbitrary Values

In Tailwind v3.1+, you can use arbitrary values to set custom list style types beyond the default utilities.

list-[square]
  • First item in the list
  • Second item with more text
  • Third item example
list-[circle]
  • First item in the list
  • Second item with more text
  • Third item example
list-[lower-alpha]
  1. First item in the list
  2. Second item with more text
  3. Third item example
list-[upper-roman]
  1. First item in the list
  2. Second item with more text
  3. Third item example
list-[lower-roman]
  1. First item in the list
  2. Second item with more text
  3. Third item example
list-['->']
  • First item in the list
  • Second item with more text
  • Third item example

About Tailwind List Styles

Tailwind's list style utilities control the CSS list-style-type and list-style-position properties, which determine how list items are marked and where those markers appear.

Remember to add left padding (e.g., pl-5) when using list-outside so the markers are visible and not cut off.

For responsive lists, use breakpoint prefixes: md:list-disc, lg:list-inside