Skip to content

Instantly share code, notes, and snippets.

@gdnwebmedia
Created November 13, 2024 16:15
Show Gist options
  • Save gdnwebmedia/a9e9acb07f241293d9e1f9bcf19977ab to your computer and use it in GitHub Desktop.
Save gdnwebmedia/a9e9acb07f241293d9e1f9bcf19977ab to your computer and use it in GitHub Desktop.
Adds a grid background gradient pattern to a container
.grid-background {
background-image: linear-gradient(90deg, #f1f2f4 1px, transparent 0), linear-gradient(180deg, #f1f2f4 1px, transparent 0);
background-position: 50% calc(100% - 1px);
background-size: 3rem 3rem;
margin: -80px 0 4em;
padding: 180px 0;
position: relative;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment