Last active
August 15, 2017 06:45
-
-
Save dgmid/1489937 to your computer and use it in GitHub Desktop.
CSS text-shadows - Example 6
This file contains hidden or 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 6 | |
*/ | |
/* page styles */ | |
@font-face { | |
font-family: 'BazarMedium'; | |
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/bazar-webfont.eot'); | |
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/bazar-webfont.eot?iefix') format('eot'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/bazar-webfont.woff') format('woff'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/bazar-webfont.ttf') format('truetype'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/bazar-webfont.svg#webfont4U38ahXF') 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; | |
margin-bottom: 10px; | |
background: #2c2e38 url(http://www.midwinter-dg.com/blog_demos/css-text-shadows/images/retro.jpg) center center; | |
} | |
h1 { | |
color: #d7ceb2; text-shadow: 3px 3px 0px #2c2e38, 5px 5px 0px #5c5f72; | |
font: 80px 'BazarMedium'; | |
letter-spacing: 10px; | |
} | |
.smaller { | |
font-size: .65em; | |
vertical-align: .2em; | |
} |
This file contains hidden or 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><span class="smaller">★</span> R<span class="smaller">ETRO</span>M<span class="smaller">ATIC</span> <span class="smaller">★</span></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 hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment