tailwind fixed sidebar , scrollable content

5
(1)

A simple Tailwind layout to create a sticky sidebar and scrollable content next to it.

<div class="flex">
    <aside class="h-screen sticky top-0">
        // Fixed Sidebar
    </aside>

    <main>
        // Content
    </main>
</div>

29

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

1 thought on “tailwind fixed sidebar , scrollable content”

Leave a Comment

Your email address will not be published.

Scroll to Top