Created
June 2, 2013 01:38
-
-
Save LibertysYarn/5692310 to your computer and use it in GitHub Desktop.
Checkerboard CSS - from Lea Verou
This file contains 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-image: | |
-moz-linear-gradient(45deg, #000 25%, transparent 25%), | |
-moz-linear-gradient(-45deg, #000 25%, transparent 25%), | |
-moz-linear-gradient(45deg, transparent 75%, #000 75%), | |
-moz-linear-gradient(-45deg, transparent 75%, #000 75%); | |
background-image: | |
-webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, #000), color-stop(.25, transparent)), | |
-webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, #000), color-stop(.25, transparent)), | |
-webkit-gradient(linear, 0 100%, 100% 0, color-stop(.75, transparent), color-stop(.75, #000)), | |
-webkit-gradient(linear, 0 0, 100% 100%, color-stop(.75, transparent), color-stop(.75, #000)); | |
-moz-background-size:100px 100px; | |
background-size:100px 100px; | |
-webkit-background-size:100px 101px; /* override value for shitty webkit */ | |
background-position:0 0, 50px 0, 50px -50px, 0px 50px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment