Describe rem unit for font-size (#27071)
This commit is contained in:
@ -63,7 +63,7 @@ There are different types of font size values:
|
|||||||
|
|
||||||
* `px` (pixels) - The default size of text being `16px`
|
* `px` (pixels) - The default size of text being `16px`
|
||||||
* `em` - based on the current or inherited font size of an element
|
* `em` - based on the current or inherited font size of an element
|
||||||
* `rem` - like `em`, but always based on the base font-size of the document
|
* `rem` - like `em`, but based on the base font-size of the document
|
||||||
* `small`, `medium`, `large` - known as absolute size values
|
* `small`, `medium`, `large` - known as absolute size values
|
||||||
* `%` - percentages
|
* `%` - percentages
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ The `font-weight`property specifies the weight (or boldness) of the font. Accept
|
|||||||
|
|
||||||
```css
|
```css
|
||||||
p {
|
p {
|
||||||
font-weight: bold
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user