Skip to content

Instantly share code, notes, and snippets.

@zetareticoli
Created April 27, 2020 15:14
Show Gist options
  • Save zetareticoli/36cc82f952256ca089952b54c0aca92a to your computer and use it in GitHub Desktop.
Save zetareticoli/36cc82f952256ca089952b54c0aca92a to your computer and use it in GitHub Desktop.
Horizontal scroll with grid
.parent {
display: grid;
grid-gap: 16px;
padding: 16px;
grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
grid-auto-flow: column;
grid-auto-columns: minmax(160px,1fr);
overflow-x: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment