Last active
August 29, 2015 13:59
-
-
Save markcarrrr/10971618 to your computer and use it in GitHub Desktop.
CSS Triangles
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
.triangle-up { | |
border-bottom: 10px solid red; | |
border-left: 10px solid transparent; | |
border-right: 10px solid transparent; | |
height: 0; | |
width: 0; | |
} | |
.triangle-down { | |
border-left: 10px solid transparent; | |
border-right: 10px solid transparent; | |
border-top: 10px solid green; | |
height: 0; | |
width: 0; | |
} | |
.triangle-right { | |
border-bottom: 10px solid transparent; | |
border-left: 10px solid blue; | |
border-top: 10px solid transparent; | |
height: 0; | |
width: 0; | |
} | |
.triangle-left { | |
border-bottom: 10px solid transparent; | |
border-right: 10px solid yellow; | |
border-top: 10px solid transparent; | |
height: 0; | |
width: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment