Skip to content

Instantly share code, notes, and snippets.

@dgmid
Created December 17, 2011 12:46
Show Gist options
  • Save dgmid/1490131 to your computer and use it in GitHub Desktop.
Save dgmid/1490131 to your computer and use it in GitHub Desktop.
CSS text-shadows - Example 5
/**
* CSS text-shadows - Example 5
*/
/* page styles */
@font-face {
font-family: 'BlackJackRegular';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/black_jack-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/black_jack-webfont.eot?iefix') format('eot'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/black_jack-webfont.woff') format('woff'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/black_jack-webfont.ttf') format('truetype'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/black_jack-webfont.svg#webfontY02aL68i') 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; margin-right: auto;
margin-left: auto;
border: 1px solid #424242;
background: black url(http://www.midwinter-dg.com/blog_demos/css-text-shadows/images/fire.jpg) center 0;
margin-bottom: 10px;
}
h1 {
color: #fff; text-shadow: 0px -1px 4px white, 0px -2px 10px yellow, 0px -10px 20px #ff8000, 0px -18px 40px red;
font: 80px 'BlackJackRegular';
}
.smaller {
font-size: .65em;
vertical-align: .2em;
}
<body>
<div>
<h1>C'mon baby light my fire!</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