Created
January 24, 2013 18:02
-
-
Save victornpb/4625820 to your computer and use it in GitHub Desktop.
A "deeper" indented text effect with the :before and :after pseudo-elements.
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
/** | |
* A "deeper" indented text effect with the :before and :after pseudo-elements. | |
*/ | |
html, body { | |
height: 100%; | |
} | |
body { | |
margin: 0; | |
background: #0A539C; | |
background: linear-gradient(top, #4293d6 0%,#001e96 100%); | |
overflow: hidden; | |
} | |
.depth { | |
display: block; | |
padding: 0px; | |
color: black; | |
font: bold 7em Arial, sans-serif; | |
position: relative; | |
} | |
.depth:before, .depth:after { | |
content: attr(title); | |
padding: 0px; | |
color: rgba(255,255,255,.1); | |
position: absolute; | |
} | |
.depth:before { top: 1px; left: 0px } | |
.depth:after { top: 1px; left: 0px } |
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
<h1 class="depth" title="Lorem ipsum">Lorem ipsum</h1> |
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-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment