◈ Estelle Weyl
→ and → to change slides. 2 for comments. estelle.github.com/CSS-Workshop
◈ Estelle Weyl
@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 | ✓ 4.4 |
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 yellow, inset -3px -3px 0 5px blue, 3px 3px 0 5px #666, -3px -3px 0 3px red; box-shadow: inset? [horiz] [vert] [blur] [spread] [color];