-
-
Save abhishek-parmar1/95fe9d38114dca822d0597e0e0448bc2 to your computer and use it in GitHub Desktop.
Right angle 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
/* | |
Right angle triangles | |
*/ | |
.right-angle-top-left{ | |
position: relative; | |
margin: 30px; | |
width: 0; | |
border-right: 100px solid transparent; | |
border-top: 100px solid red; | |
} | |
.right-angle-bottom-left{ | |
position: relative; | |
margin: 30px; | |
width: 0; | |
border-right: 100px solid transparent; | |
border-bottom: 100px solid red; | |
} | |
.right-angle-top-right{ | |
position: relative; | |
margin: 30px; | |
width: 0; | |
border-left: 100px solid transparent; | |
border-top: 100px solid red; | |
} | |
.right-angle-bottom-right{ | |
position: relative; | |
margin: 30px; | |
width: 0; | |
border-top: 100px solid transparent; | |
border-right: 100px solid red; | |
} |
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
<div class='right-angle-top-left'></div> | |
<div class='right-angle-bottom-left'></div> | |
<div class='right-angle-top-right'></div> | |
<div class='right-angle-bottom-right'></div> |
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
{"view":"separate","fontsize":"60","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment