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 trialLuigi Rulloda
6,175 PointsI can't figure this thing out
I tried to debug and keep going back and forth on the video but this one is pretty tough.
<!DOCTYPE html>
<html>
<head>
<title>Sass Basics - Code Challenge</title>
<link rel="stylesheet" type="text/css" href="page-style.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="animals">
Animals
</div>
<div class="dogs">
Dogs
</div>
<div class="super_link">
My favorite animals are: <a href="http://en.wikipedia.org/wiki/Dog" target="_blank">Dogs!</a>
</div>
</body>
</html>
/* Write your SCSS code below. */
.animals {
background: #369;
}
.dogs {
@extend .dogs;
background: #369;
}
.super_link {
font-weight: bold red;
}
1 Answer
Michael Afanasiev
Courses Plus Student 15,596 PointsHi Luigi,
I'm not a Sassy monster yet, but you need to use the super_link as place holder using the % sign. Also, you don't add color inside the font-weight property, you have to add it separately.
Perhaps my code will explain itself better:
.animals {
background: #369;
}
.dogs {
@extend .dogs;
background: #369;
}
%super_link {
font-weight: bold;
color: red;
}
Hope this helps!