Created
September 8, 2017 07:05
-
-
Save VasMark/401050aad41a65f126b6d281e4a132e1 to your computer and use it in GitHub Desktop.
Как сделать срезанные углы в CSS
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, body { margin: 0; padding: 0 } | |
div { | |
height: 200px; | |
background: green; | |
} | |
div:after { | |
content: ''; | |
position: absolute; | |
left: 0; | |
top: 0; | |
border-top: 30px solid white; | |
border-right: 30px solid green; | |
} | |
div:before { | |
content: ''; | |
position: absolute; | |
right: 0; | |
top: 170px; | |
border-bottom: 30px solid white; | |
border-left: 30px solid green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment