Skip to content

Instantly share code, notes, and snippets.

@thienanle
Created October 17, 2012 20:55
Show Gist options
  • Save thienanle/3908122 to your computer and use it in GitHub Desktop.
Save thienanle/3908122 to your computer and use it in GitHub Desktop.
A "deeper" indented text effect with the :before and :after pseudo-elements.
/**
* 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, #fff 0%,#e5e5e5 100%);
overflow: hidden;
}
.depth {
display: block;
padding: 50px;
color: black;
font: bold 7em Arial, sans-serif;
color: rgba(120, 120, 120, 0.8);
text-shadow: 0px 4px 6px #fff, 0 0 1px #000, 1px 4px 6px #fff;
}
<h1 class="depth" title="Lorem ipsum">Lorem ipsum</h1>
{"view":"split","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