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

Viewport Length Units

Hi, I'm currently watching the CSS Fundamentals series. On a video it was said that and shown that viewport length units(vh, vw) can be used to make different elements on a page responsive, if so, then isn't it better to always use these units instead of the other ones? I know it probably isn't, that's why I'm asking it here. What's the reason of using other length units when viewport length units can make elements responsive? Thanks

1 Answer

Cameron Latimer
Cameron Latimer
7,421 Points

I think people are still using em or px because vh/vw only have support in the new browser versions.