@font-face { font-family: 'blah'; src: url('blah.eot'); src: url('blah.eot?#iefix') format('embedded-opentype'), url('blah.woff') format('woff'), url('blah.ttf') format('truetype'), url('blah.svg#blahRegular') format('svg'); font-weight: normal; font-style: normal; }
body { font-family: 'blah', arial, san-serif; }
@font-face { font-family: yourFontName; src: url(fontfile) [, url(fontfile)]*; [font-weight: bold|normal]; [font-style: italic|normal]; [charset: characterSet;] }
File | Chrome | Firefox | Opera | Safari | Internet Explorer | iOS mobile | Android |
---|---|---|---|---|---|---|---|
EOT | ✓ | ||||||
TTF/OTF | ✓ | ✓ | ✓ | ✓ | 9 | ✓ 4.2 | ✓ 2.2 |
SVG | ✓ | ✓ | ✓ | ✓ | ✓ 3 | ||
WOFF | ✓ | ✓ | ✓ 11.1+ | ✓ 5.1 | ✓ 9 | ✓ 5 |
text-shadow: left top blur color;
.trans { text-shadow: 0 5px 1px rgba(0,0,0,0.2);}
.solid { text-shadow: 0 5px 1px #999;}
text-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.2); text-shadow: [horiz] [vert] [blur] [color];
.textshadow { text-shadow: 0 1px #cccccc, 0 2px #c9c9c9, 0 3px #bbbbbb, 0 4px #b9b9b9, 0 5px #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15); }
box-shadow: inset 3px 3px 0 3px #C7573A, inset -3px -3px 0 3px #BDD9D5, 3px 3px 0 3px #BDD9D5, -3px -3px 0 3px #C7573A; box-shadow: inset? [horiz] [vert] [blur] [spread] [color];
.rainbowBorders { box-shadow: 0 0 0 10px red, 0 0 0 20px orange, 0 0 0 30px yellow, 0 0 0 40px green, 0 0 0 50px blue, 0 0 0 60px purple; }Check it out!