Last active
December 12, 2018 09:46
-
-
Save elgervb/a80fa0dfb805c37f091f8e28ffb1a602 to your computer and use it in GitHub Desktop.
css snippets
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
.rainbow { | |
background-image: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet); | |
width: 100%; | |
height: 60px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
// draws a grid | |
.grid { | |
background-color: #f00; | |
background-size: 20px 20px; | |
background-image: linear-gradient(to right, #fafafa 1px, transparent 1px), linear-gradient(to bottom, #fafafa 1px, transparent 1px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment