Last active
June 27, 2021 08:21
-
-
Save marcus-at-localhost/70a0b70c6c0f6f5482d193749a8ae123 to your computer and use it in GitHub Desktop.
[Sticky Element with Flexbox] Sticky Position will not work if your parent is using display flex. https://stackoverflow.com/a/66966273/814031
This file contains hidden or 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
| .sticky { | |
| position: sticky; | |
| top: 0; | |
| align-self: flex-start; | |
| height: auto; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment