Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Often, the first way new developers learn to measure things on the screen is in pixels. In today’s world of varying pixel density and vastly different screen sizes, using pixels to describe the size of elements on a webpage makes less sense. In this video, we’ll get familiar with a few different relative units of measurement that we can use in CSS.
Resource
Further Reading
The Lengths of CSS
A Look at Length Units in CSS
CSS Character Units CodePen, by Wes Bos
Relative Units:
- Em
- Rem
- Vh
- Vw
- ch
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up