Skip to content

Commit 358e38c

Browse files
committed
Solution for problem 1 of foundations css exercise
1 parent 320c164 commit 358e38c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

foundations/01-css-methods/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
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">
9+
<style>
10+
p {
11+
background-color: green;
12+
color: white;
13+
font-size: 18px;
14+
}
15+
</style>
816
</head>
917
<body>
1018
<div>Style me via the external method!</div>
1119
<p>I would like to be styled with the internal method, please.</p>
12-
<button>Inline Method</button>
20+
<!-- an orange background and a font size of 18px -->
21+
<button style="background-color: orange; font-size: 18px;">Inline Method</button>
1322
</body>
1423
</html>

foundations/01-css-methods/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* a red background, white text, a font size of 32px, center aligned, and bold */
2+
3+
div {
4+
background-color: red;
5+
font-size: 32px;
6+
color: white;
7+
text-align: center;
8+
font-weight: bold;
9+
}

0 commit comments

Comments
 (0)