You can edit / change the code and click run button
x
 
1
2
3
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
  <title>Relative Length Units</title>
6
<script>var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push(101319977);</script><script async src="//static.getclicky.com/js"></script>
7
<style>
8
/* Relative Length Units 
9
--------------------------------------------- */
10
html {
11
    font-size: 1em;
12
}
13
.box {
14
    width: 30em;
15
}
16
p {
17
    font-size: 1em;  /* font-size: 16px  both are same*/
18
}
19
body {
20
  font-family: sans-serif;
21
  line-height: 1.5;
22
  width: 75%;
23
  margin: 0 auto;
24
  color: #FFF;
25
  padding: 2em 0;
26
  background: #000;
27
}
28
</style>
29
30
    <h1>Relative Length Units</h1>
31
    <h1>em unit</h1>
32
    <div class="box">
33
        <p>
34
            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
35
            tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
36
            quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
37
            consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
38
            cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
39
            proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
40
        </p>
41
    </div>
42
43
44