Skip to content

Instantly share code, notes, and snippets.

@frankyonnetti
Created September 17, 2021 18:08
Show Gist options
  • Save frankyonnetti/5edd380d6d3ef6d779ee055b78771612 to your computer and use it in GitHub Desktop.
Save frankyonnetti/5edd380d6d3ef6d779ee055b78771612 to your computer and use it in GitHub Desktop.
#CSS #triangle
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