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!
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 trial
3.06 minutes into this video, Placing elements outside of the wrapper?
I didn't understand when Guil says placing elements outside of the wrapper? That its perfectly ok to do so. Is he on about html? Or css?
Jason Larson8,342 Points
He's referring to the wrapper div that he created. He mentions specifically that it's ok to place elements outside the wrapper at this point because he is no longer using the body as the wrapper. If he were still using the body as the wrapper, then you wouldn't be able to put elements outside of the wrapper because they would need to be outside the body, which isn't permitted. It should be noted that this also partially refers to the CSS as well, because the CSS is what is defining the styling for the wrapper and the elements inside it.
Oh of course anything outside the body is a no no.... thanks, just didn't quite get what he meant.