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 trialMartin Ng'ang'a
1,223 PointsHelp me Explain understand this.
Select the unordered list nested inside the nav element. Remove the margins on the top and bottom. Set the margins on the left and right to 10px.
2 Answers
Luke Glazebrook
13,564 PointsHey Martin!
This is the code that you are looking for.
nav ul {
margin: 0px 10px;
}
The first value after the margin attribute is used to define how big you want the margin on the top and bottom to be. The second one, is used to define how big you want the margins on the left and right to be.
Hope this solves your problem!
Martin Ng'ang'a
1,223 PointsThanks .
Martin Ng'ang'a
1,223 PointsMartin Ng'ang'a
1,223 PointsAlso assist me with this Add CSS that will allow all images to fill their parent element.
Luke Glazebrook
13,564 PointsLuke Glazebrook
13,564 PointsTo do that you will need you use the width attribute of the image element. See if you can do it yourself.