Skip to content

Commit 0e15464

Browse files
authored
Update README.md
1 parent 42533ed commit 0e15464

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exercises/12-Relative-Length-EM-REM/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ By now, we are used to working with pixels as measurement unit, for example, say
55
There are other types of units that are not fixed, but relative. We use them when we want the element size to be related to another element or measurement unit.
66

77
### Example using em:
8-
In this exercise we have two <h2> headings. They are both <h2>, but one is bigger than the other because headings have relative font-sizes by default. Since the first div has a bigger based font-size, then the heading resizes accordingly.
8+
In this exercise we have two `<h2>` headings. They are both `<h2>`, but one is bigger than the other because headings have relative font-sizes by default. Since the first div has a bigger based font-size, then the heading resizes accordingly.
9+
910
```Plain/Text
1011
em: Relative to the current font-size of the parent.
1112
rem: Relative to the original font-size of the page.
1213
```
14+
1315
## 📝 Instructions:
1416

1517
1. Give a font-size of 0.8em to both h2's

0 commit comments

Comments
 (0)