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 Compass Basics Compass Layout and Typography Compass Layout

jasonniebauer
jasonniebauer
28,801 Points

Compass Inline Block Navigation

I seem to have hit a road block with the code challenge:

Next, use a utility mixin to make .main-nav a horizontal list. Set the float direction to left and the padding value to 5px.

Here is what I have:

.main-nav {
@include inline-block-list(5px);
@include float-left;
}

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Jason,

I think you've simply confused the mixin you were supposed to use, the challenge is asking for a horizontal-list while you're attempting to style it using an inline-block-list.

http://compass-style.org/reference/compass/utilities/lists/horizontal_list/

Im about to go crazy it took me weeks to get to the end of this first track and now ive been stuck on the last 2 hours of copass for a few days.

/* Write your SCSS code below. */

// Imports @import "compass/css3"; @import "compass/utilities" // Variables

.main-nav { @include horizontal-list(5px, left); }

// Page Styles

Any help or pointers would be grate.