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 trialThe Hound
Courses Plus Student 162 PointsAm I missing something
First code challenge CSS layouts. Off the bat, add padding to .main-header
I thought it would be
.main-header {
padding-left : 5px;
padding-right : 5px;
}
That doesn't seem to work.
2 Answers
James Barnett
39,199 PointsI noticed you are new to Treehouse, if you are also new CSS then you probably take the CSS Foundations before the CSS Layout Techniques course.
You might also want to check out the Web Design Track
Trent Burkenpas
22,388 Pointsyou want to add padding to all of .main-header. you are only adding it to left and right.
.main-header {
padding: 5px;
}
This will adding padding all around the element