Created
May 24, 2013 20:39
-
-
Save trumball/5646370 to your computer and use it in GitHub Desktop.
CSS3 Checkered Pattern
Similar to the polka-dots above we can also create a full seamless checkerboard pattern. This method requires a bit more syntax to get working, but it looks flawless in all CSS3-supported browsers. Also you can change the color values from white and black to match that of your own website color scheme.
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-color: white; | |
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), | |
linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black); | |
background-size: 100px 100px; | |
background-position: 0 0, 50px 50px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment