Created
April 21, 2014 15:54
-
-
Save drublic/11146817 to your computer and use it in GitHub Desktop.
Untitled
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:before, | |
.triangle:after { | |
content: ""; | |
position: absolute; | |
bottom: -15px; /* value = - border-top-width - border-bottom-width */ | |
left: 30px; | |
border-width: 15px 15px 0; /* vary these values to change the angle of the vertex */ | |
border-style: solid; | |
border-color: #aaa transparent; | |
} | |
.triangle:before { | |
bottom: -14px; /* -1px of first element for border */ | |
border-color: #fff transparent; | |
} |
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
<p>Triangle</p> |
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
// alert('Hello world!'); |
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":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment