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

vertical rhythm with Compass typography library. How do I get the grids to display?

Hello, I don't see the grid overlay on my web page. I've added the following code to my custom.scss

@import 'compass/typography';

@include establish-baseline;

body { @include debug-vertical-alignment; font-family: 'Asap', Helvetica, Arial, sans-serif ; font-size:$base-font-size; line-height:$base-line-height; background:$body_bg_color;

I know I am missing steps. Google searches aren't helping me so I think I am the only person with this issue. Am I supposed to create the debug image?

Thanks sharon

1 Answer

SERGIO RODRIGUEZ
SERGIO RODRIGUEZ
17,532 Points

Sharon,

You don't need to create the debug image, that parameter is optional so your code should be working fine as is.

Try this (all of them):

  1. Use double quotes in your import "compass/typography" statement.

  2. Establish a $base-font-size and a $base-line-height BEFORE you @include establish-baseline; The baseline is established based on those two variables.

$base-font-size: 16px;
$base-line-height: 24px;
@include establish-baseline;
  1. Make sure you are using the @include debug-vertical-alignment statement after the establish-baseline statement (you are currently ok with this).

Hope this helps,

Sergio

Sergio,

Thank you. That worked. I was banging my head. Best, Sharon