Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2017 22:50
Show Gist options
  • Save anonymous/d0105ba396fdf2ed1fa7d499008cf8ba to your computer and use it in GitHub Desktop.
Save anonymous/d0105ba396fdf2ed1fa7d499008cf8ba to your computer and use it in GitHub Desktop.
Classical Drawing Gradients
<div class="outer"><div class="inner"></div></div>
<p>&nbsp;</p>
<div class="outer empty"><div class="inner"></div></div>
div {
box-sizing: border-box;
}
.outer {
width: 300px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #777;
background: linear-gradient(to right, #000 0%, #fff 100%);
}
.empty {
background: none;
}
.inner {
width: 250px;
height: 25px;
background-color: #777;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment