File tree 2 files changed +17
-2
lines changed
foundations/01-css-methods
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Methods for Adding CSS</ title >
8
+ < link rel ="stylesheet " href ="style.css ">
8
9
</ head >
9
10
< body >
10
11
< div > Style me via the external method!</ div >
11
- < p > I would like to be styled with the internal method, please.</ p >
12
- < button > Inline Method</ button >
12
+ < style >
13
+ p {
14
+ background-color : green;
15
+ color : white;
16
+ font-size : 18px ;
17
+ }
18
+ </ style >
19
+ < p > I would like to be styled with the internal method, please.</ p >
20
+ < button style ="background-color: orange; font-size: 18px; "> Inline Method</ button >
13
21
</ body >
14
22
</ html >
Original file line number Diff line number Diff line change
1
+ div {
2
+ background-color : red;
3
+ color : white;
4
+ font-size : 32px ;
5
+ text-align : center;
6
+ font-weight : bold;
7
+ }
You can’t perform that action at this time.
0 commit comments