Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Compass Basics Compass Layout and Typography Compass Typography

Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

I REALLY Don't Get it...

I don't understand why my code isn't working for this exercise: Finally, inside the p rule, include the mixin that applies trailing whitespace while maintaining vertical rhythm. - Bummer! Make sure you're including the correct mixin inside the p rule.

Here's my code:

@import "compass/typography";

@include establish-baseline ($base-font-size);

h1 {
  @include adjust-font-size-to(48px);
  margin-bottom: rhythm(1);
}

h2 {
  @include adjust-font-size-to(36px);
  margin-bottom: rhythm(1);
}

p {
  $rhythm-unit: $base-line-height; 
}

Thank you,

Amil

Hi Amilcar,

I fixed your code formatting. You want to use 3 backticks and they need to be on their own lines with a blank line before the opening backticks and after the closing ones.

Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

I think I get what you mean - Thank you...

4 Answers

On that last part it looks like you want to include the trailer mixin. This will add trailing space.

@include trailer();

The parentheses are optional if you're not passing in any arguments.

Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

It worked - Thank you, Jason - appreciate it... P :)

Amil

Hi Jason and Amilcar,

I'm still having trouble getting past this lesson. Can you be more specific with the opening back ticks?

thank you

Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

Hey Tyler,

They look just like this: ``` - All you have to do is place them at the top and the bottom of your code, if that makes any sense - Good luck... P :)

Amil

Hey Amilcar, thanks for the help! i ended up getting it right after posting that earlier! forgot to come back and delete it

Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

No problem - Glad you figured everything out... P :)

Amil