Last active
January 4, 2016 20:59
-
-
Save gridwalk/8678274 to your computer and use it in GitHub Desktop.
CSS Hack for making borders any size
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
//produces a 100px box with 80px right border | |
div{ | |
height: 100px; | |
position:relative; | |
&:after { | |
content: ''; | |
position: absolute; | |
height: 80%; | |
border-right: 2px solid red; | |
right: 1px; | |
top: 1px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment