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

Tailwind CSS class: .top-0 / .top-*

<div class="relative h-16 w-16 bg-gray-400 m-2">
  <div class="absolute top-0 h-4 w-full bg-teal-400"></div>
</div>
<div class="relative h-16 w-16 bg-gray-400 m-2">
  <div class="absolute top-auto bottom-0 h-4 w-full bg-teal-400"></div>
</div>

Preview

CSS source

.top-0 { top: 0; }
.top-auto { top: auto; }

More in Tailwind CSS Positioning