File tree Expand file tree Collapse file tree 2 files changed +28
-5
lines changed
foundations/02-class-id-selectors Expand file tree Collapse file tree 2 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 8
8
< link rel ="stylesheet " href ="style.css ">
9
9
</ head >
10
10
< body >
11
- < p > Number 1 - I'm a class!</ p >
12
- < div > Number 2 - I'm one ID.</ div >
13
- < p > Number 3 - I'm a class, but cooler!</ p >
14
- < div > Number 4 - I'm another ID.</ div >
15
- < p > Number 5 - I'm a class!</ p >
11
+ < p class =" odd one " > Number 1 - I'm a class!</ p >
12
+ < div id =" number-2 " > Number 2 - I'm one ID.</ div >
13
+ < p class =" odd three " > Number 3 - I'm a class, but cooler!</ p >
14
+ < div id =" number-4 " > Number 4 - I'm another ID.</ div >
15
+ < p class =" odd five " > Number 5 - I'm a class!</ p >
16
16
</ body >
17
17
</ html >
Original file line number Diff line number Diff line change
1
+ /* styles.css */
2
+
3
+ .odd {
4
+ background-color : lightpink;
5
+ font-family : "Verdana" , "DejaVu Sans" , serif;
6
+ }
7
+ .one ,
8
+ .five {
9
+
10
+ }
11
+ .three {
12
+ font-size : 24px ;
13
+ }
14
+
15
+ # number-2 {
16
+ color : blue;
17
+ font-size : 36px ;
18
+ }
19
+ # number-4 {
20
+ font-weight : bold;
21
+ background-color : lightgreen;
22
+ font-size : 24px ;
23
+ }
You can’t perform that action at this time.
0 commit comments