-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorr.css
44 lines (34 loc) · 909 Bytes
/
colorr.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
/*Lots of Selector Types, check out these links*/
/* http://www.w3schools.com/cssref/css_selectors.asp */
/* https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors */
/* https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors */
/*Class selectors start with a dot . */
.firstDiv{
color: blue;
}
.secondDiv{
background-color: gray;
}
/* Use an id to single out html elements*/
/* id selectors use a hashtag # */
#singledout{
color: red;
text-decoration: underline;
}
/*Use an asterisk to select all elements*/
*{
color: green;
}
/*Adjacent sibling: Elements that are next to each other*/
h3 + ul{
border: 3px dotted purple;
}
/*Descendants*/
li a{
color: black;
}
/*Attributes*/
li a[href="www.npr.org"]{
color: red;
border: 3px dashed rgb(89, 36, 169);
}