max-width3:23 with Anwar Montasir
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.
You need to sign up for Treehouse in order to download course files.Sign up