Skip to content

Commit 52ebbf4

Browse files
committed
[css2] Changes by Tantek: lowercased CSS examples.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401880
1 parent 128e531 commit 52ebbf4

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

css2/colors.src

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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">&lt;color&gt;</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
188188
that 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

Comments
 (0)