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
Usually, when defining a number value, we need to specify a length or unit of measurement for that value. If we don’t, the browser will likely not know what to do with that number value. So CSS offers different units for expressing length. Some length units are more flexible than others. For example, relative units and percentage units are always relative to other length values, which makes it easier for developers to layout content independently of screen size and resolution. Meanwhile, absolute units, like pixels, are always fixed in relation to each other. They don't scale like relative units do.
Further reading
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