Make Typography Responsive?

Tell us what’s happening:
i can’t seem to figure this one out. Thoughts?

Your code so far

 h2 { vw: 80vw}
 p {vmin: 75vmin};

<h2>Importantus Ipsum</h2>
<p>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.</p>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15.

Link to the challenge:

vw and vmin are units, they aren’t properties. What you’ve written is like writing p { cm: 75cm; } or p { px: 75px; } - “set every paragraph’s centimetres to be 75 centimetres” or “set every paragraph’s pixels to be 75 pixels” - it doesn’t make sense. You should be setting the font size.

1 Like