File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed
foundations/02-class-id-selectors Expand file tree Collapse file tree 2 files changed +24
-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 =" firstClass " > Number 1 - I'm a class!</ p >
12
+ < div id =" firstID " > Number 2 - I'm one ID.</ div >
13
+ < p class =" firstClass special " > Number 3 - I'm a class, but cooler!</ p >
14
+ < div id =" secondID " > Number 4 - I'm another ID.</ div >
15
+ < p class =" firstClass " > Number 5 - I'm a class!</ p >
16
16
</ body >
17
17
</ html >
Original file line number Diff line number Diff line change
1
+ .firstClass {
2
+ background-color : rgb (240 , 100 , 100 , 0.4 );
3
+ font-family : "Verdana" , sans-serif;
4
+ }
5
+ .firstClass .special {
6
+ font-size : 24px ;
7
+ }
8
+ # firstID {
9
+ color : blue;
10
+ font-size : 36px ;
11
+ }
12
+ .secondClass {
13
+ font-size : 24px ;
14
+ }
15
+ # secondID {
16
+ background-color : lightgreen;
17
+ font-size : 24px ;
18
+ font-weight : bold ;
19
+ }
You can’t perform that action at this time.
0 commit comments