Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chientrm/c1250422b982593c3ebd31ed35735e16 to your computer and use it in GitHub Desktop.
Save chientrm/c1250422b982593c3ebd31ed35735e16 to your computer and use it in GitHub Desktop.
Tailwind - Fixed sidebar, scrollable content
// Source: https://twitter.com/calebporzio/status/1151876736931549185
<div class="flex">
<aside class="h-screen sticky top-0">
// Fixed Sidebar
</aside>
<main>
// Content
</main>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment