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

CSS CSS Layout Techniques Display Modes Display Modes Challenge

Am 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
James Barnett
39,199 Points

The Hound -

I 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
Trent Burkenpas
22,388 Points

you 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