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 trialChrishaun Byrom
1,203 PointsLeft - Top - Bottom - Right Margins. What am I doing wrong?
Ok. So I selceted the nav element and the nested <ul> and placed the margins as so: margin: 0 10px 0 10px;... It won't register with the test. How wrong am I in coding this?
3 Answers
Chrishaun Byrom
1,203 PointsYa know what? I just figured it out by going to my first workspace and looking at my code. Thanks anyways guys!
Jacob Miller
12,466 PointsMargin values go like this: top right bottom left, or you can do a shorthand like this: top & bottom left & right. So you can complete that challenge by writing either this:
nav ul {
margin: 0 10px 0 10px;
}
or this:
nav ul {
margin: 0 10px;
}
Jeremy Germenis
29,854 PointsIt probably wants the short code version of two declarations instead of four.
Your doing --> top right bottom left
It wants --> top/bottom left/right