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

Martin Ng'ang'a
Martin Ng'ang'a
1,223 Points

Help 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

Hey 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
Martin Ng'ang'a
1,223 Points

Also assist me with this Add CSS that will allow all images to fill their parent element.

To do that you will need you use the width attribute of the image element. See if you can do it yourself.