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 trialTrent Burkenpas
22,388 PointsCompass Help
Having trouble with this code challenge task 2 of 5
Next, use a utility mixin to make .main-nav a horizontal list. Set the float direction to left and the padding value to 5px.
.main-nav {
@include float-left;
@include horizontal-list(5px);
}
Any advice would be much appreciated
4 Answers
Rand Seay
13,975 PointsHello,
I am not familiar with this challenge, but after reading through some of the Compass Documentation, it looks like the mixin horizontal-list()
takes an argument for $direction
. It could be that the challenge wants you to use this rather than the float-left()
mixin.
.main-nav {
@include horizontal-list(5px, left);
}
I can't say this with any certainty, but it may be of help to you.
Cesar Rodriguez
1,069 PointsVasil Dzhutov
Courses Plus Student 7,129 PointsHello. My code isn't passing that challange: @import "compass/css3"; @import "compass/utilities"
.main-nav{ @include horizontal-list(5px, left); } What's wrong?
Kollyn Lund
20,644 PointsHi Vasil Dzhutov, try putting a semi-colon after your last @import.
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsThis is the correct answer.
Trent Burkenpas
22,388 PointsTrent Burkenpas
22,388 PointsThank You, and thanks for the link to the documentation