Last active
February 20, 2020 06:30
-
-
Save victorshkoda/4a2ee7b2130d4867137f5ed90d4c2fba to your computer and use it in GitHub Desktop.
Triange box css ctyle
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
.arrow-up { | |
width: 0; | |
height: 0; | |
border-left: 15px solid transparent; | |
border-right: 15px solid transparent; | |
border-bottom: 30px solid black; | |
} | |
.arrow-down { | |
width: 0; | |
height: 0; | |
border-left: 15px solid transparent; | |
border-right: 15px solid transparent; | |
border-top: 30px solid #f00; | |
} | |
.arrow-right { | |
width: 0; | |
height: 0; | |
border-top: 15px solid transparent; | |
border-bottom: 15px solid transparent; | |
border-left: 30px solid green; | |
} | |
.arrow-left { | |
width: 0; | |
height: 0; | |
border-top: 15px solid transparent; | |
border-bottom: 15px solid transparent; | |
border-right: 30px solid blue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment