Created
December 17, 2011 12:46
-
-
Save dgmid/1490131 to your computer and use it in GitHub Desktop.
CSS text-shadows - Example 5
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
/** | |
* 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; | |
} |
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
<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> |
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
{"page":"result","view":"split"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment