Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmelgoza/6d26da32df455c4eed8be99187b405e3 to your computer and use it in GitHub Desktop.
Save jasonmelgoza/6d26da32df455c4eed8be99187b405e3 to your computer and use it in GitHub Desktop.
Checking out support for css
.flex-container {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1em;
}
@supports not (gap: 1em) {
.flex-container {
margin: -0.5em;
}
.flex-container > * {
margin: 0.5em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment