is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Tailwind CSS, Bootstrap, Bulma, and Material-UI.
← Tailwind CSS classes list

Tailwind CSS class: .list-inside / .list-outside

<ul class="list-disc bg-teal-400 list-inside m-2 ml-6">
  <li>Disc</li>
  <li>Disc</li>
</ul>
<ul class="list-disc bg-teal-400 list-outside m-2 ml-6">
  <li>Disc</li>
  <li>Disc</li>
</ul>

Preview

  • Disc
  • Disc
  • Disc
  • Disc

CSS source

.list-inside { list-style-position: inside; }
.list-outside { list-style-position: outside; }

More in Tailwind CSS List