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 trialSantosh Kumar
1,132 PointsWhat 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.....
6 Answers
Itsa Snake
3,852 PointsAre the links within list items? i.e.
nav li {
display: inline-block;
}
Santosh Kumar
1,132 PointsI 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?
Adam Lake
3,810 PointsCould you copy in your html?
Richard Duncan
5,568 PointsIs it case sensitive? try:
a {
display: inline-block;
}
Adam Lake
3,810 Pointswithout 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
1,132 PointsI have used the below code: nav { display: inline-block ; }
Adam Lake
3,810 PointsCould you copy in your html?
Adam Lake
3,810 Pointstry
nav a { display: inline-block; }
Santosh Kumar
1,132 PointsYup..got it..Thanks guys for ur help...
Adam Lake
3,810 PointsAdam Lake
3,810 PointsWhat exactly did you add that property too? Are you able to copy your code in ?