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 trialian truong
4,685 Pointsgrid placement in css are amazing but i have one concern. can header and nav share one space?
header{
grid-column: 1 / 3;
}
nav{
grid-column: 1/3
}
1 Answer
Steven Parker
231,268 PointsThat should put them in the same columns of two different rows.
To have them share one space, either put one inside the other (it's common to have a nav
section in the header
), or enclose them both in a shared container.
ian truong
4,685 Pointsian truong
4,685 Pointsbut how do you put one inside the other?
Steven Parker
231,268 PointsSteven Parker
231,268 Pointsian truong
4,685 Pointsian truong
4,685 Pointsomg.. yes thats so simple lol. i forgot all about nesting nav inside header with html. thank you!