11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: colors.src,v 2.23 2002-04-22 22:05:21 bbos Exp $ -->
3+ <!-- $Id: colors.src,v 2.24 2002-07-05 12:50:22 bbos Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Colors and backgrounds</TITLE>
@@ -28,8 +28,8 @@ content. There are different ways to specify red:
2828
2929<div class="example"><P>
3030<PRE>
31- EM { color: red } /* predefined color name */
32- EM { color: rgb(255,0,0) } /* RGB range 0-255 */
31+ em { color: red } /* predefined color name */
32+ em { color: rgb(255,0,0) } /* RGB range 0-255 */
3333</PRE>
3434</div>
3535
@@ -106,7 +106,7 @@ class="value-inst-color"><color></span></span> value or the keyword
106106
107107<div class="example"><P>
108108<PRE>
109- H1 { background-color: #F00 }
109+ h1 { background-color: #F00 }
110110</PRE>
111111</div>
112112
@@ -126,8 +126,8 @@ image, or 'none', when no image is used.
126126
127127<div class="example"><P>
128128<PRE>
129- BODY { background-image: url("marble.gif") }
130- P { background-image: none }
129+ body { background-image: url("marble.gif") }
130+ p { background-image: none }
131131</PRE>
132132</div>
133133
@@ -153,7 +153,7 @@ Values have the following meanings:</p>
153153
154154<div class="example"><P>
155155<PRE>
156- BODY {
156+ body {
157157 background: white url("pendant.gif");
158158 background-repeat: repeat-y;
159159 background-position: center;
@@ -187,7 +187,7 @@ the image is tiled ('background-repeat: repeat'), it may be invisible.
187187<div class="example"><P>This example creates an infinite vertical band
188188that remains "glued" to the viewport when the element is scrolled.
189189<PRE>
190- BODY {
190+ body {
191191 background: red url("pendant.gif");
192192 background-repeat: repeat-y;
193193 background-attachment: fixed;
@@ -264,10 +264,10 @@ values or length values (all possible combinations are given above).
264264<div class="example"><P>
265265
266266<PRE>
267- BODY { background: url("banner.jpeg") right top } /* 100% 0% */
268- BODY { background: url("banner.jpeg") top center } /* 50% 0% */
269- BODY { background: url("banner.jpeg") center } /* 50% 50% */
270- BODY { background: url("banner.jpeg") bottom } /* 50% 100% */
267+ body { background: url("banner.jpeg") right top } /* 100% 0% */
268+ body { background: url("banner.jpeg") top center } /* 50% 0% */
269+ body { background: url("banner.jpeg") center } /* 50% 50% */
270+ body { background: url("banner.jpeg") bottom } /* 50% 100% */
271271</PRE>
272272</div>
273273
@@ -279,7 +279,7 @@ element's padding area. For example,
279279
280280<div class="example"><P>
281281<PRE>
282- BODY {
282+ body {
283283 background-image: url("logo.png");
284284 background-attachment: fixed;
285285 background-position: 100% 100%;
0 commit comments