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 trialSusan Dubickas
828 PointsHow do I get the display property set to inline-block to be recognized?
Error: Did you set the display property to inline-block?
nav ul {
margin: 0 10px;
list-style: none;
padding: 0;
display: inline-block;
}
Display property is set to inline-block. Why is this not getting recognized?
Thanks! Susan
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a {
color: #fff;
}
nav a:hover {
color: #32673f;
}
h1 {
font-family: ‘Changa One’, sans-serif;
font-size: 1.75em;
font-weight: normal;
}
img {
max-width: 100%;
}
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
#gallery li {
float: left;
width: 45%;
margin: 2.5%;
background-color: #f5f5f5;
color: #bdc3c7;
}
nav ul {
margin: 0 10px;
list-style: none;
padding: 0;
display: inline-block;
}
4 Answers
Tobias Helmrich
31,603 PointsHey Susan,
the challenge wants you to set the list items inside the nav to inline-block, not the unordered list.
So this should work:
nav li {
display: inline-block;
}
Geovanie Alvarez
21,500 PointsRemove the display: inline-block from nav ul and put into nav li because in the instruction say: Select the list items inside the nav element and set their display to inline-block.
nav li {
display: inline-block;
}
Susan Dubickas
828 PointsAh. Okay. Guess I'm just really getting thrown with 'select' which to me means to select something that currently exists - I keep looking for a piece of code that already exists that I should be adding to.
Your line of code worked.
Thanks! Susan
Susan Dubickas
828 PointsYea, I guess the 'select' verbiage in the instruction set is just really misleading me today.
Thanks! Susan