Created
February 13, 2013 16:56
-
-
Save sthembi/4946063 to your computer and use it in GitHub Desktop.
Text-shadow for text outlines
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
/** | |
* Text-shadow for text outlines | |
*/ | |
body{ | |
background: #392d0b; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
} | |
#myelement { | |
/*color: #000000;*/ | |
font-size:3em; | |
/*text-shadow: | |
-1px -1px 0 #ffffff, | |
1px -1px 0 #ffffff, | |
-1px 1px 0 #ffffff, | |
1px 1px 0 #ffffff;*/ | |
} | |
.myelement{ | |
padding:2em; | |
font-size:4em; | |
text-shadow: | |
3px 0 3px yellow, | |
6px 1px 6px orange, | |
9px 2px 9px red, | |
12px 3px 12px lime, | |
15px 4px 15px blue, | |
18px 5px 18px violet; | |
letter-spacing:.1em; | |
color: magenta; | |
} | |
.myelement2 { | |
font-size:4em; | |
padding:2em; | |
letter-spacing: .06em; | |
font-family: "Century Gothic", Helvetica, Arial, sans-serif; | |
text-rendering:optimizelegibility; | |
font-weight: 400; | |
/*-webkit-text-stroke: .03em #ada135;*/ /*remove for cross-browser compatibility*/ | |
color: #f4efda; | |
text-shadow: | |
2px 0px 2px #ada135, | |
-2px -2px .1em #ada135, | |
2px -2px .1em #ada135, | |
-2px 2px .1em #ada135, | |
2px 2px .1em #ada135; | |
} | |
html.ie7 #myelement, | |
html.ie8 #myelement, | |
html.ie9 #myelement { | |
background-color: white; | |
filter: progid:DXImageTransform.Microsoft.Chroma(color='white') progid:DXImageTransform.Microsoft.Alpha(opacity=100) progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=1,offY=1) progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=-1,offY=1) progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=1,offY=-1) progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=-1,offY=-1); | |
zoom: 1; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="myelement">Donate [rainbow]</div> | |
<div class="myelement2">Donate</div> |
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
// alert('Hello world!'); |
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-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment