Skip to content

Commit ebcee78

Browse files
committed
Merge branch 'master' of https://github.com/mdn/css-examples
2 parents c871fe7 + 8d59670 commit ebcee78

File tree

2 files changed

+49
-7
lines changed

2 files changed

+49
-7
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Unstyled example</title>
7+
<link rel="stylesheet" href="../styles.css">
8+
9+
10+
<style class="editable">
11+
/* Create your test CSS here */
12+
13+
p {
14+
color: red;
15+
}
16+
</style>
17+
</head>
18+
19+
<body>
20+
<section class="preview">
21+
<p>Create your test HTML here</p>
22+
</section>
23+
24+
<textarea class="playable playable-css" style="height: 160px;">
25+
/* Create your test CSS here */
26+
27+
p {
28+
color: red;
29+
}
30+
</textarea>
31+
32+
<textarea class="playable playable-html" style="height: 160px;">
33+
<p>Create your test HTML here</p>
34+
</textarea>
35+
36+
<div class="playable-buttons">
37+
<input id="reset" type="button" value="Reset">
38+
</div>
39+
</body>
40+
<script src="../playable.js"></script>
41+
42+
</html>

learn/values-units/em-rem.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212

1313
<style class="editable">
1414
html {
15-
font-size: 0.8em;
15+
font-size: 16px;
1616
}
1717

1818
.ems li {
19-
font-size: 1.5em;
19+
font-size: 1.3em;
2020
}
2121

2222
.rems li {
23-
font-size: 1.5rem;
23+
font-size: 1.3rem;
2424
}
2525
</style>
2626
</head>
@@ -64,15 +64,15 @@
6464

6565
<textarea class="playable playable-css" style="height: 280px;">
6666
html {
67-
font-size: .8em;
67+
font-size: 16px;
6868
}
6969

7070
.ems li {
71-
font-size: 1.5em;
71+
font-size: 1.3em;
7272
}
7373

7474
.rems li {
75-
font-size: 1.5rem;
75+
font-size: 1.3rem;
7676
}
7777

7878

@@ -92,7 +92,7 @@
9292
</li>
9393
</ul>
9494
</li>
95-
</ul>
95+
</ul>
9696

9797
<ul class="rems">
9898
<li>One</li>

0 commit comments

Comments
 (0)