📄 tailwindcss/docs/list-style-position

File: list-style-position.md | Updated: 11/15/2025

Source: https://tailwindcss.com/docs/list-style-position

v4.1

⌘KCtrl KDocs Blog Showcase Sponsor Plus

  1. Typography
  2. list-style-position

Typography

list-style-position

Utilities for controlling the position of bullets and numbers in lists.

| Class | Styles | | --- | --- | | list-inside | list-style-position: inside; | | list-outside | list-style-position: outside; |

Examples


Basic example

Use utilities like list-inside and list-outside to control the position of the markers and text indentation in a list:

list-inside

  • 5 cups chopped Porcini mushrooms
  • 1/2 cup of olive oil
  • 3lb of celery

list-outside

  • 5 cups chopped Porcini mushrooms

  • 1/2 cup of olive oil

  • 3lb of celery

    <ul class="list-inside"> <li>5 cups chopped Porcini mushrooms</li> <!-- ... --></ul><ul class="list-outside"> <li>5 cups chopped Porcini mushrooms</li> <!-- ... --></ul>

Responsive design

Prefix a list-style-position utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:

<ul class="list-outside md:list-inside ...">  <!-- ... --></ul>

Learn more about using variants in the variants documentation .

On this page

Copyright © 2025 Tailwind Labs Inc.·Trademark Policy