A Pen by Chris Tsongas on CodePen.
Forked from anonymous/classical-drawing-gradients.markdown
Created
August 5, 2017 22:52
-
-
Save tsongas/bb39d366e0507d69eeaf51f68ce7c751 to your computer and use it in GitHub Desktop.
Classical Drawing Gradients
This file contains hidden or 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 hidden or 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