Skip to content

Instantly share code, notes, and snippets.

@anatooly
Created August 12, 2019 11:54
Show Gist options
  • Save anatooly/ef9ad42ad9c4bbbd6e868a7dd29b541e to your computer and use it in GitHub Desktop.
Save anatooly/ef9ad42ad9c4bbbd6e868a7dd29b541e to your computer and use it in GitHub Desktop.
:root {
--background-color: #ccc;
}
html, body {
heigth: 100%;
weight: 100%;
padding: 0;
margin: 0;
background: var(--background-color);
}
.insert-image {
width: 100%;
height: 100%;
background: url('data:image/svg+xml,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\
<circle r="15" cx="50" cy="50" fill="yellow" />\
</svg>');
background-size: 100px 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment