-
Notifications
You must be signed in to change notification settings - Fork 0
/
practice_01.css
75 lines (63 loc) · 1.38 KB
/
practice_01.css
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* preferance of css is that (inline css > style tag css > externla css) */
h1{
color: blue; /* color use to give a foregroun color on the selector */
/* external css */
}
/* on the following lines h1 is the selector; color are the property and red are the value of the property */
button {
color: blue;
background-color: yellow;
}
/* body {
background-color: rgb(00, 255, 00);/* rgb ==> red green blue; mixing of the folllowing show thw result*/
/* by giving the value of the rgb color then show the diffent shade of the color */
} */
/* body {
/* Hex(Hexadecimal) */
/* A B C D E F */
/*10 20 30 40 50 60 */
color: #ff0000;
/* ff 00 00 */
/* R G B*/
} */
/* universal selector
*{} ==> asteris
*/
*{
color: black;
}
body{
background-color: black;
}
/* h1 {
color: black;
background-color: blue;
} */
#heading1{
color: yellow;
background-color: blue;
}
#heading2 {
color: aqua;
background-color: yellowgreen;
}
/* class start with
.{}
*/
.name {
color: blueviolet;
background-color: chartreuse;
}
/* practice question */
#box {
background-color: blue;
color: yellow;
}
.heading {
color: rgb(189, 160, 160);
background-color: black;
}
.button1{
color: rgb(189, 160, 160);
background-color: black;
}