Created
September 17, 2021 18:08
-
-
Save frankyonnetti/5edd380d6d3ef6d779ee055b78771612 to your computer and use it in GitHub Desktop.
#CSS #triangle
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
https://css-tricks.com/snippets/css/css-triangle/ | |
.arrow-up { | |
content: ""; | |
border-right: 15px solid transparent; | |
border-bottom: 15px solid black; | |
border-left: 15px solid transparent; | |
width: 0; | |
height: 0; | |
} | |
.arrow-right { | |
content: ""; | |
border-top: 15px solid transparent; | |
border-bottom: 15px solid transparent; | |
border-left: 15px solid green; | |
width: 0; | |
height: 0; | |
} | |
.arrow-down { | |
content: ""; | |
border-top: 15px solid red; | |
border-right: 15px solid transparent; | |
border-left: 15px solid transparent; | |
width: 0; | |
height: 0; | |
} | |
.arrow-left { | |
content: ""; | |
border-top: 15px solid transparent; | |
border-right: 15px solid blue; | |
border-bottom: 15px solid transparent; | |
width: 0; | |
height: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment