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 Layout Techniques Display Modes Table Display

Dwayne Neckles
Dwayne Neckles
1,715 Points

Final Code doesnt seem consistent with code in video

Is it me or is the code displayed in the video not the same as the final code? for example in the video display is set to inline-block to the following elements .main-nav, .main-nav li { display: inline-block; } I watched the video a few times to see where it was changed to just inline and missed it. Can someone show me where it was changed that i was missing?

1 Answer

Hi Dwayne,

I don't think it was ever changed to inline and my final code doesn't have an inline for any of the selectors you are referring to. The only change to those selectors is in a media query, and that was set to block.. Below is the code.

Jeff

.main-logo,
.main-nav,
.main-nav li {
    display: inline-block;
}

@media (max-width: 768px) {
    .main-logo,
    .main-nav,
    .main-nav li {
        display: block;
        width: initial;
        margin: initial;
    }
    .main-nav {
        padding-left: initial;
    }
    .main-nav li {
        margin-top: 15px;
    }
}