Skip to content

Commit cab8e40

Browse files
Update Typography.md
1 parent 2d8aed4 commit cab8e40

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/CSS/css-basics/Typography.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@ h1 {
2727
```
2828
You can check the relation between units
2929

30-
<img src="https://tse4.mm.bing.net/th?id=OIP.x3eQ0WknsCLHiRLl5jGYowHaEr&pid=Api&P=0&h=180" alt="CSS" height= "300" width="500"/>
30+
| Unit | Description |
31+
| :--------: | :--------: |
32+
| `em` | Calculated relative to the current font size. For example, 2em indicates 2 times larger size than current element's font size. |
33+
| `px` | `px` stands for "pixels." It's a unit of measurement commonly used in digital design and web development to define the size of elements on a screen. |
34+
| `%` | Percentage (`%`) is a relative unit of measurement that expresses a value as a fraction of the parent element's size or the viewport's dimensions.For example, 50% of the width of the container. |
35+
| `rem` | Relative to font size of the root-element. |
36+
| `vw` | Viewport width (`vw`) is a relative unit of measurement that expresses a value as a fraction of the width of the browser viewport. `1vw` is equal to 1% of the width of the viewport. |
37+
| `vh` | Viewport height (`vh`) is a relative unit of measurement that expresses a value as a fraction of the height of the browser viewport. `1vh` is equal to 1% of the height of the viewport. |
38+
3139

3240
**3. Font Weight**
3341

0 commit comments

Comments
 (0)