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 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,603 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,603 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.