Skip to content

Commit e567c8a

Browse files
committed
cenas
1 parent 00b51b9 commit e567c8a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

foundations/01-css-methods/index.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Methods for Adding CSS</title>
8+
<link rel="stylesheet" href="style.css">
89
</head>
910
<body>
1011
<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>
1321
</body>
1422
</html>

foundations/01-css-methods/style.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
div {
2+
background-color: red;
3+
color:white;
4+
font-size: 32px;
5+
text-align: center;
6+
font-weight: bold;
7+
}

0 commit comments

Comments
 (0)