Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations Web Typography Responsive Text and Vertical Rhythm: Part 2

Alexandru Dan Dodu
Alexandru Dan Dodu
2,910 Points

Viewport units (vw)

As SERGIO RODRIGUEZ said in question "Current support of viewport units vs FitText", viewport units seem to be supported by all browsers. However legacy browsers, such as IE8, Safari5, Opera Mini and Android 4.3 (which we could not say it is legacy) don't support it.

Is there a possibility in CSS to search for support of the vw unit? I would like to use vw and then, verify: if it is not supported, then use px, but only for those browsers that don't support it. For example, Android 4.3 is quite used.

1 Answer

Hi Alexandru,

This article from CSS Tricks under the heading Using it now might have the answers you need.

Hope that helps.

-Rich