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 CSS Foundations The Box Model Width, Height and Overflow Properties

Santosh Kumar
Santosh Kumar
1,132 Points

What does it mean by "Display the links in the nav as inline block elements." ?

I gave the CSS property value as inline-block for property "Display".. But the challenger says its incorrect.. can you tell me what I have been doing wrong in here.....

What exactly did you add that property too? Are you able to copy your code in ?

6 Answers

Itsa Snake
Itsa Snake
3,852 Points

Are the links within list items? i.e.

nav li {
  display: inline-block;
}
Santosh Kumar
Santosh Kumar
1,132 Points

I just used the nav element in CSS... I think we shouldn't be using the 'li' here coz we are not dealing with any list items right?

Could you copy in your html?

Richard Duncan
Richard Duncan
5,568 Points

Is it case sensitive? try:

a {
   display: inline-block;
}

without seeing your exact code its hard to give you a exact answer but try something like:

nav ul li a{display: inline-block} or nav li a{display: inline-block}

Also take into consideration that nav might be a id or class

Santosh Kumar
Santosh Kumar
1,132 Points

I have used the below code: nav { display: inline-block ; }

Could you copy in your html?

try

nav a { display: inline-block; }

Santosh Kumar
Santosh Kumar
1,132 Points

Yup..got it..Thanks guys for ur help...