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 trial

CSS How to Make a Website Styling Web Pages and Navigation Create a Horizontal List of Links

What am I missing? Setting top/bottom = 0; left/right = 10;

TRBL setting {margin: 0 10px; } should set the top and bottom to 0, then left and right to 10, right? I've also tried {margin: 0 10px 0 10px;} and it didn't work either. Keep getting message to set top to 0

2 Answers

John Wheeler
John Wheeler
6,671 Points

Do you have the right selector in the code? like:

h1 {
  margin: 0 10px;
}

I copied and pasted your code into project of mine and it works fine. The only thing I can think of is the selector.

Thanks for replying...I don't know what it was but after refreshing browser was fine