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 Review: Styling Web Pages and Navigation

In question 2, I think that display: inline; is a valid answer to the question but it marked me wrong.

I know that it's suppose to be inline-block but the question wasn't specific enough so inline is just as good of an answer.

1 Answer

The question states: "Which of the following CSS declarations will allow list items to appear horizontally?"

I understand what you're trying to say, but being that you're going to eventually turn this list into links "inline-block" is best. This way you won't have to add a display property with the value of "block" for the anchor tags.