-
Notifications
You must be signed in to change notification settings - Fork 1
/
all.html
38 lines (29 loc) · 911 Bytes
/
all.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>CSS test: all</title>
<style>
div { border: 1px solid black;
width: 300px;
margin-bottom: 5px;
}
div.warning { background-color: yellow;
color: red;
font-weight: bold;
}
div.ok { background-color: Chartreuse;
color: DarkGreen;
font-weight: bold;
}
div.normal { all: initial;}
</style>
</head>
<body>
<div >Some text</div>
<div class='warning'>Take care!</div>
<div class='ok' >All is good.</div>
<div class='normal' >Normal text</div>
<div >More text</div>
</body>
</html>