Created
May 24, 2013 20:38
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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