Created
May 23, 2012 08:21
-
-
Save nrrrdcore/2773866 to your computer and use it in GitHub Desktop.
Outlined Type Effect with CSS Text-Shadowing
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 { | |
background-color: #FFF; | |
} | |
#wrapper { | |
width: 90%; | |
margin: 200px auto; | |
} | |
h1 { | |
font-family: 'Frontage'; | |
font-size: 50px; | |
text-align: center; | |
color: #f9f9f9; | |
letter-spacing: -5px; | |
text-shadow: 0 1px 2px rgba(0,0,0,.15), | |
0 -1px 1px rgba(0,0,0,.1), | |
0 1px 20px #F9F9F9; | |
} |
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 id="wrapper"> | |
<h1>Outlined Type + CSS</h1> | |
</div> | |
</body> |
Smart. Renders nicer than -webkit-text-stroke, too (and, y'know, there are other browsers.) Woop!
@shpoonj My eyes aren't that bad yet.. lol.. but I usually learn something new from these too, especially trying to make mixins out of them (forces me to spend a little time analyzing what each line does). 😁
Compass version here, took me a while to find the font 😁
Red on red: https://gist.github.com/2832074
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I broke my eyes trying to read this... but I learned something too!