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
In the last video, we learned to use box-sizing: border-box to match up Developer Diane’s photo and bio, and now they’re both 600 pixels wide. And on a large screen like a laptop, both elements fit comfortably onscreen. But what happens if my screen gets smaller than 600 pixels? After all, some users still have phones that are as narrow as 320 pixels wide in portrait orientation. And when I make my screen that narrow, Diane’s photo and bio no longer fit onscreen. This is where a CSS property called max-width comes in handy.
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