Skip to content

Instantly share code, notes, and snippets.

@dgmid
Created December 17, 2011 12:52
Show Gist options
  • Save dgmid/1490143 to your computer and use it in GitHub Desktop.
Save dgmid/1490143 to your computer and use it in GitHub Desktop.
CSS text-shadows - Example 3
/**
* CSS text-shadows - Example 3
*/
/* page styles */
@font-face {
font-family: 'Museo700';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/museo700-regular-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/museo700-regular-webfont.eot?iefix') format('eot'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/museo700-regular-webfont.woff') format('woff'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/museo700-regular-webfont.ttf') format('truetype'),
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/museo700-regular-webfont.svg#webfontCTlzR6rL') 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-image: url(http://www.midwinter-dg.com/blog_demos/css-text-shadows/images/emboss.jpg);
}
h1 {
text-shadow: -1px -1px 1px #fff, 1px 1px 1px #000; color: #9c8468;
opacity: 0.3;
font: 80px 'Museo700';
}
<body>
<div>
<h1>EMBOSSED TEXT</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