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 trialPaul Barron
6,595 Points100% Grid
If I want to make a full page grid would I just put .container {max-width: 100%} ?
Sreng Hong
15,083 PointsI think maybe you're right, and I'm wrong!!!
2 Answers
Isaac Asante
4,752 PointsJust use width: 100%;
because in this scenario, you want to make a full-page grid, which will fill the page on any device or any screen. So you don't need max-width
, because in no case do you want the width to be reduced based on any condition. It's useless to set a maximum value or minimum for the width. What you want is for the grid to cover absolutely the full page at all times. So just set the width
.
Mathieu Delporte
8,097 Pointsuse width: 100%, max-width can be useful too but is declared when building responsive websites and in this case not necessary.
Sreng Hong
15,083 PointsSreng Hong
15,083 PointsI think max-width property is to set the maximum width of something, if you want the full page grid i think you should put width 100%. Correct me if i'm wrong.