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 trialBrenton Cozby
6,684 PointsWhy add the div wrapper? Why not use body as wrapper?
Guil says that adding a div wrapper allows him to have more control. How so? Why can we just add the wrapper class to the body element?
1 Answer
Adam Moore
21,956 PointsI believe that the body is more of the screen, as in it contains most of the elements and sits mostly in the background. With a div wrapper, it can allow greater control over the whole page section, as if you were controlling the body of the page, without being constrained by some aspects that are unique to the HTML body itself.