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 trialBob Sutherton
20,160 PointsMax-width
I didn't fully get the explanation about "max-width". I got that the width of the div is not supposed to exceed 940px, as the name implies, but that's about it. What am I missing here? I feel there was more to it that I didn't grasp.
2 Answers
Logan R
22,989 PointsMax-width means that the width can be any width as long as it doesn't exceed the set width. If your browser is 500px and your max width is 700, the browser will adjust the width to 500px.
If you have a set width, width, then no matter what your browser size is, it will always be that width.
Hope this helps!
Bob Sutherton
20,160 PointsThanks LR