A Pen by Chris Tsongas on CodePen.
Created
August 5, 2017 22:50
-
-
Save anonymous/d0105ba396fdf2ed1fa7d499008cf8ba to your computer and use it in GitHub Desktop.
Classical Drawing Gradients
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
<div class="outer"><div class="inner"></div></div> | |
<p> </p> | |
<div class="outer empty"><div class="inner"></div></div> |
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
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