Last active
July 28, 2024 03:09
-
-
Save Plou/5774037 to your computer and use it in GitHub Desktop.
CSS styles to create an arrow with borders on a pseudo element (work with any empty tag)
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 down */ | |
div::after { | |
content: ' '; | |
position: absolute; | |
left: 125px; | |
bottom: -10px; | |
border: 10px solid @color; | |
border-bottom: 0; | |
border-left-color: transparent; | |
border-right-color: transparent; | |
} | |
/* triangle down */ | |
div::after { content: ""; position: absolute; left: 125px; bottom: -10px; border: 10px solid @color; border-bottom: 0; border-left-color: transparent; border-right-color: transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is great