Skip to content

Commit 8b8253f

Browse files
committed
exercises12
1 parent ecb8439 commit 8b8253f

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<link rel="stylesheet" type="text/css" href="./styles.css" />
7+
<title>12 Relative Length EM REM</title>
8+
</head>
9+
<body>
10+
<div id="my-first-div">
11+
<h2>First h2 heading</h2>
12+
<h3>First h3 heading</h3>
13+
<p>Here is some nice fake content</p>
14+
</div>
15+
16+
<div id="the-second-one">
17+
<h2>Second h2 heading</h2>
18+
<h3>Second h3 heading</h3>
19+
<p>More fake content but now in the second container</p>
20+
</div>
21+
</body>
22+
</html>

exercises/12-Relative-Length-EM-REM/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h2>First h2 heading</h2>
1212
<h3>First h3 heading</h3>
1313
<p>Here is some nice fake content</p>
1414
</div>
15-
15+
1616
<div id="the-second-one">
1717
<h2>Second h2 heading</h2>
1818
<h3>Second h3 heading</h3>

exercises/12-Relative-Length-EM-REM/solution.hide.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
}
77

88
/* YOUR CODE BELOW THIS LINE */
9-
h2{
9+
h2 {
1010
font-size: 0.8em;
1111
}
1212

13-
h3{
13+
h3 {
1414
font-size: 0.8rem;
15-
}
15+
}

exercises/12-Relative-Length-EM-REM/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@
66
}
77

88
/* YOUR CODE BELOW THIS LINE */
9+
10+
h2 {
11+
font-size: 0.8em;
12+
}
13+
14+
h3 {
15+
font-size: 0.8rem;
16+
}

0 commit comments

Comments
 (0)