src/docs/list-style-position.mdx
import { ApiTable } from "@/components/api-table.tsx"; import { Example } from "@/components/example.tsx"; import { Figure } from "@/components/figure.tsx"; import { ResponsiveDesign } from "@/components/content.tsx";
export const title = "list-style-position"; export const description = "Utilities for controlling the position of bullets and numbers in lists.";
<ApiTable rows={[ ["list-inside", "list-style-position: inside;"], ["list-outside", "list-style-position: outside;"], ]} />
Use utilities like list-inside and list-outside to control the position of the markers and text indentation in a list:
<!-- [!code classes:list-inside] -->
<ul class="list-inside">
<li>5 cups chopped Porcini mushrooms</li>
<!-- ... -->
</ul>
<!-- [!code classes:list-outside] -->
<ul class="list-outside">
<li>5 cups chopped Porcini mushrooms</li>
<!-- ... -->
</ul>