Skip to content

Instantly share code, notes, and snippets.

@sergeicodes
Forked from DmitryBaranovskiy/grid.svg
Last active May 6, 2017 18:28
Show Gist options
  • Save sergeicodes/efcc82d99d1da38ba086bf6a1dd45be4 to your computer and use it in GitHub Desktop.
Save sergeicodes/efcc82d99d1da38ba086bf6a1dd45be4 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100">
<defs>
<style>
svg {
background:#0175A7;
}
.square {
stroke:#99C8DC;
stroke-width:1;
}
.stroke {
stroke:#3491B9;
opacity: 0.8;
fill: none;
}
</style>
<pattern id="small-grid" patternUnits="userSpaceOnUse" x="0" y="0" width="20" height="20" viewBox="0 0 20 20">
<rect x="-0.5" y="-0.5" width="20" height="20" class="stroke"/>
</pattern>
<pattern id="big-grid" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" viewBox="0 0 100 100">
<rect x="-0.5" y="-0.5" width="100" height="100" class="square" fill="url(#small-grid)"/>
</pattern>
</defs>
<rect x="-0.5" y="-0.5" width="100" height="100" fill="url(#big-grid)"/>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment