Tailwind CSS Classes

Tailwind CSS class .relative

<div class="relative bg-gray-600 py-6">
  Relative
  <div class="absolute bottom-0 left-0 bg-gray-800 p-4">
    Absolute
  </div>
</div>

Preview

CSS source

.relative { 
    position: relative;
}

Check .relative in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Tailwind CSS classes in Positioning category

© 2024 Shuffle. All rights reserved.