Created
January 29, 2016 13:41
-
-
Save niorad/cfc83680db4ef844f2ff to your computer and use it in GitHub Desktop.
A diagonal line through a box
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
.container { | |
position: relative; | |
overflow: hidden; | |
&:after { | |
position: absolute; | |
content: ' '; | |
width: 100%; | |
height: 200%; | |
border: 1px solid black; | |
bottom: 0; | |
left: 0; | |
transform-origin: bottom left; | |
transform: rotateZ(45deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment