From 810d6d398563fc68447d0916f94e2fe985b3966a Mon Sep 17 00:00:00 2001 From: Prajwal Bajracharya <34180536+bajracharya1994@users.noreply.github.com> Date: Thu, 13 Dec 2018 21:10:00 +0545 Subject: [PATCH] Describe rem unit for font-size (#27071) --- guide/english/css/fonts/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/english/css/fonts/index.md b/guide/english/css/fonts/index.md index 8a6d1056cc..75ad0f586d 100644 --- a/guide/english/css/fonts/index.md +++ b/guide/english/css/fonts/index.md @@ -14,7 +14,7 @@ p { font-family: "Times New Roman", Times, serif; } ``` -In the above example, "Times New Roman" is the *family-name* of the font, while "serif" is the *generic-name*. Generic names are used as a fallback mechanism for preserving style if the family-name is unavailable. A generic name should always be the last item in the list of font family names. +In the above example, "Times New Roman" is the *family-name* of the font, while "serif" is the *generic-name*. Generic names are used as a fallback mechanism for preserving style if the family-name is unavailable. A generic name should always be the last item in the list of font family names. Generic family names are: * serif @@ -63,7 +63,7 @@ There are different types of font size values: * `px` (pixels) - The default size of text being `16px` * `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 * `%` - percentages @@ -92,7 +92,7 @@ The `font-weight`property specifies the weight (or boldness) of the font. Accept ```css p { - font-weight: bold + font-weight: bold; } ```