Skip to content

Instantly share code, notes, and snippets.

@dgmid
Created December 17, 2011 12:55
Show Gist options
  • Save dgmid/1490147 to your computer and use it in GitHub Desktop.
Save dgmid/1490147 to your computer and use it in GitHub Desktop.
CSS text-shadows - Example 2
/**
* CSS text-shadows - Example 2
*/
/* page styles */
@font-face {
font-family: 'ChunkFiveRegular';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot?iefix') format('eot'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.woff') format('woff'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.ttf') format('truetype'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.svg#webfont6hibqX7I') format('svg');
font-weight: normal;
font-style: normal;
}
body {
text-align: center;
background: #383838 url(http://www.midwinter-dg.com/images/theme/body.gif) repeat;
width:1000px;
margin: 80px auto 40px;
}
p {
width: 300px;
margin: 40px auto;
text-align: center;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #999;
}
a:link, a:visited {
color: #ccc;
text-decoration: none;
}
a:hover, a:active {
color: #0080ff;
}
/* text-shadow styles */
div {
width: 998px; border: 1px solid #424242;
background-image: url(http://www.midwinter-dg.com/blog_demos/css-text-shadows/images/clouds.jpg);
margin-right: auto;
margin-left: auto;
margin-bottom: 10px;
}
h1 {
text-shadow: 0px 0px 10px rgba(255,255,255,0.6), 0px 0px 30px rgba(255,255,255,0.4), 0px 0px 50px rgba(255,255,255,0.3), 0px 0px 180px rgba(255,255,255,0.3); color: rgba(255,255,255,0);
font: 80px 'ChunkFiveRegular';
}
<body>
<div>
<h1>ON CLOUD NINE</h1>
</div>
<p>you can find more examples here:<br />
<a href="http://www.midwinter-dg.com/blog_demos/css-text-shadows/" target="_blank">CSS text-shadow examples</a>
</p>
</body>
{"page":"result","view":"split"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment