Tailwind CSS Classes

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

Are you tired of writing HTML by hand?

CSS source

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

More Tailwind CSS classes in List category

© 2024 Shuffle. All rights reserved.