/** * 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: 50px; color: black; font: bold 7em Arial, sans-serif; position: relative; } .depth:after { content: attr(title); padding: 50px; position: absolute; } .depth:after { top: 0px; left: 0px; color: transparent; text-shadow: 0px 0px 4px rgba(255,0,0,.7); }
<h1 class="depth" title="Lorem ipsum">Lorem ipsum</h1>