Forked from BjornDCode/gist:5cb836a6b23638d6d02f5cb6ed59a04a
Created
June 22, 2021 01:49
-
-
Save fujohnwang/8997b43dc17462933e69e9bf86055ce9 to your computer and use it in GitHub Desktop.
Tailwind - Fixed sidebar, scrollable content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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