← Tailwind CSS classes list

Tailwind CSS class: .fixed

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

Preview

Check .fixed 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.

CSS source

.fixed {
    position: fixed;
}

More in Tailwind CSS Positioning