Last active
August 29, 2015 14:05
-
-
Save tlimpanont/192ef963a83446d413a3 to your computer and use it in GitHub Desktop.
Fancy header style with CSS3 Triangle
This file contains hidden or 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
| /** | |
| * Fancy header style with CSS3 Triangle | |
| */ | |
| .arrow-down { | |
| width: 0; | |
| height: 0; | |
| border-left: 13px solid transparent; | |
| border-right: 13px solid transparent; | |
| margin: 0 auto; | |
| position: absolute; | |
| bottom: -13px; | |
| left: 50%; | |
| } | |
| .arrow-brown { | |
| border-top: 13px solid brown; | |
| } | |
| .arrow-red { | |
| border-top: 13px solid red; | |
| } | |
| .arrow-green { | |
| border-top: 13px solid #ADCB57; | |
| } | |
| .arrow-title.green-bg { | |
| background: #ADCB57; | |
| } | |
| .arrow-title.red-bg { | |
| background: red; | |
| } | |
| .arrow-title.brown-bg { | |
| background: brown; | |
| } | |
| .arrow-title { | |
| padding: 5px; | |
| font-family: Arial, Verdana, sans-serif; | |
| position: relative; | |
| font-size: 1em; | |
| color: white; | |
| } |
This file contains hidden or 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
| <h1 class="arrow-title green-bg">Test title <span class="arrow-down arrow-green"> </span></h1> | |
| <br /> | |
| <h1 class="arrow-title red-bg">Test title <span class="arrow-down arrow-red"> </span></h1> | |
| <br /> | |
| <h1 class="arrow-title brown-bg">Test title <span class="arrow-down arrow-brown"> </span></h1> |
This file contains hidden or 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 hidden or 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":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment