Skip to content

Instantly share code, notes, and snippets.

@tkroo
Forked from dfrankland/checkered.css
Created February 2, 2022 08:34
Show Gist options
  • Select an option

  • Save tkroo/84af3748451ab940ae1be23b1ee35412 to your computer and use it in GitHub Desktop.

Select an option

Save tkroo/84af3748451ab940ae1be23b1ee35412 to your computer and use it in GitHub Desktop.

Revisions

  1. @dfrankland dfrankland created this gist Aug 25, 2016.
    9 changes: 9 additions & 0 deletions checkered.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    body {
    background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(135deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(135deg, transparent 75%, #ccc 75%);
    background-size:25px 25px; /* Must be a square */
    background-position:0 0, 12.5px 0, 12.5px -12.5px, 0px 12.5px; /* Must be half of one side of the square */
    }