Tailwind CSS Classes

Tailwind CSS class .sticky

<div class="sticky inset-x-0 top-0 left-0 bg-gray-400 py-5">Menu</div>

Preview

Are you tired of writing HTML by hand?

CSS source

.sticky {
    position: sticky;
}

More Tailwind CSS classes in Positioning category

© 2024 Shuffle. All rights reserved.