--- id: 587d78b1367417b2b2512b0c title: Make Typography Responsive challengeType: 0 videoUrl: 'https://scrimba.com/p/pzrPu4/crzN7T8' forumTopicId: 301141 dashedName: make-typography-responsive --- # --description-- 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:
vw
(viewport width): 10vw
would be 10% of the viewport's width.vh
(viewport height): 3vh
would be 3% of the viewport's height.vmin
(viewport minimum): 70vmin
would be 70% of the viewport's smaller dimension (height or width).vmax
(viewport maximum): 100vmax
would be 100% of the viewport's bigger dimension (height or width).Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.
``` # --solutions-- ```htmlLorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.
```