Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 20:38
Show Gist options
  • Save trumball/5646365 to your computer and use it in GitHub Desktop.
Save trumball/5646365 to your computer and use it in GitHub Desktop.
CSS3 Polka-Dot Pattern I was a bit taken back when initially finding this snippet online. But it is a really interesting method for generating CSS3-only BG patterns on the fly. I have targeted the body element as default but you could apply this onto any container div in your webpage.
body {
background: radial-gradient(circle, white 10%, transparent 10%),
radial-gradient(circle, white 10%, black 10%) 50px 50px;
background-size: 100px 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment