Created
February 19, 2012 09:28
-
-
Save dgmid/1862745 to your computer and use it in GitHub Desktop.
Black text on white with text-shadow
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
/** | |
* Black text on white with text-shadow | |
*/ | |
/* page styles */ | |
@font-face { | |
font-family: 'LeagueGothicRegular'; | |
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.eot'); | |
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.eot?iefix') format('eot'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.woff') format('woff'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.ttf') format('truetype'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.svg#webfontIQSKTUY8') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
body { | |
text-align: center; | |
background: #fff; | |
width:1000px; | |
margin: 80px auto 40px; | |
} | |
/* text-shadow styles */ | |
.eg1 { | |
color: #000; | |
font: 80px 'LeagueGothicRegular'; | |
text-shadow: 0 2px 2px #fff, 0 4px 4px #333; | |
} | |
.eg2 { | |
color: #000; | |
font: 80px 'LeagueGothicRegular'; | |
text-shadow: 2px 2px 0 #fff, 4px 4px 0 #ccc; | |
} | |
.eg3 { | |
color: #000; | |
font: 80px 'LeagueGothicRegular'; | |
text-shadow: -1px 1px 0 #fff, -2px 2px 0 #fff, -3px 3px 0 #fff, -4px 4px 0 #fff, -5px 5px 10px #777; | |
} | |
p { | |
color: #000; | |
font: 16px 'helvetica'; | |
text-shadow: 0 1px 0 #fff, 0 0 5px #ccc, 0 0 7px #ccc; | |
; |
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> | |
<h1 class="eg1">BLACK TEXT WITH SHADOW</h1> | |
<h1 class="eg2">BLACK TEXT WITH SHADOW</h1> | |
<h1 class="eg3">BLACK TEXT WITH SHADOW</h1> | |
<p>OK - so body copy is not so easy…<br />…in fact, it's just about impossible.<br /><br />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment