From b24f606847b6192444b606ad0d21cd8dba0ca642 Mon Sep 17 00:00:00 2001 From: Bannon Tanner Date: Mon, 11 Feb 2019 20:28:07 -0600 Subject: [PATCH] added example to make description clear (#26492) Added example in the description for understanding that the width of the element is still set using the width property in CSS. fixes issue #17617 --- .../make-typography-responsive.english.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.english.md b/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.english.md index 2f43999577..465db86e28 100644 --- a/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.english.md @@ -10,6 +10,8 @@ videoUrl: 'https://scrimba.com/p/pzrPu4/crzN7T8' Instead of using em or px to size text, you can use viewport units for responsive typography. Viewport units, like percentages, are relative units, but they are based off different items. Viewport units are relative to the viewport dimensions (width or height) of a device, and percentages are relative to the size of the parent container element. The four different viewport units are: +Here is an example that sets a body tag to 30% of the viewport's width. +body { width: 30vw; } ## Instructions