Skip to content

Instantly share code, notes, and snippets.

@marcus-at-localhost
Last active June 27, 2021 08:21
Show Gist options
  • Select an option

  • Save marcus-at-localhost/70a0b70c6c0f6f5482d193749a8ae123 to your computer and use it in GitHub Desktop.

Select an option

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