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 Getting Started with Compass Getting Started with Compass

configuration variable to set support for SVG.

I can;t seem to be able to find the correct variable on the compass website for this question :(

Any help would be appreciated.

sass/style.scss
/* Write your SCSS code below. */

// Imports

@import "compass/css3";

// Variables

$experimental-support-for-svg;

// Page Styles

body {
  @include background(linear-gradient(#3d69b5, #1a335e));
}
index.html
<!DOCTYPE html>
<html>
<head>
  <title>My Compass Project</title>
  <link href="stylesheets/style.css" rel="stylesheet">
</head>
<body>
  <div class="main-logo"></div>
</body>
</html>

2 Answers

Tobias Helmrich
Tobias Helmrich
31,601 Points

Hello Michael,

you almost got it right! The only thing that's missing is the value for the $experimental-support-for-svg variable.

You have to set it to true:

/* Write your SCSS code below. */

// Imports

@import "compass/css3";

// Variables

$experimental-support-for-svg: true;

// Page Styles

body {
  @include background(linear-gradient(#3d69b5, #1a335e));
}

Thank you!, I really am struggling with Compass :( i'll stick at it :P

Tobias Helmrich
Tobias Helmrich
31,601 Points

No problem, I'm glad I could help! Nothing is easy at first, I'm sure you'll get the hang of it pretty soon. :) I also recommend checking out the bourbon library as a lighter alternative to Compass.