From 6ff5e52b2d258633a7de43eb253026d5aa9cbe88 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 11 Nov 2019 03:24:02 -0600 Subject: [PATCH] Improve viewport unit readability (#36673) * Improve viewport unit readability Ran into a readability issue when trying to complete challenge. Instead of using `width: 80vw` was attempting `vw: 80vw` based on the initial layout. I believe either this change or the example that was added but doesn't seem to be pushed yet will help. --- .../make-typography-responsive.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0075bedcac..19ed712ec2 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,7 +10,7 @@ forumTopicId: 301141
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; }