1/* You have 2 options
2 The first is experimental */
3
4/* text-stroke */
5#example {
6 font-size: 1em;
7 -webkit-text-stroke: 1px #000000;
8}
9
10/* Use 4 shadows
11 Probably best to use this until the above is standardised */
12#example {
13 font-size: 1em;
14 text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
15}
1h1 {
2 /* 1 pixel black shadow to left, top, right and bottom */
3 text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
4
5 font-family: sans; color: yellow;
6}
1h1 {
2 color: yellow;
3 text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
4}
5<h1>Hello World</h1>
1h1 {
2 color: white;
3 text-shadow:
4 -1px -1px 0 #000,
5 1px -1px 0 #000,
6 -1px 1px 0 #000,
7 1px 1px 0 #000;
8}
1p{
2 border: 1px solid #f00;
3 /*
4 ShortHand
5 border: border-width border-style border-color
6 */
7}