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 Sass Basics (retired) Variables, Mixins, and Extending Selectors Extending Selectors

Now style a new class, .message_box. Nested inside, make sure all <a> tags within this class extend the "super_link" pla

what wll be the code like

<!DOCTYPE html>
  <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">
  <div class="animals">
  <div class="dogs">
  <div class="message_box">
    My favorite animals are: <a href="http://en.wikipedia.org/wiki/Dog" target="_blank">Dogs!</a>
/* Write your SCSS code below. */
.animals {
  background: #369;
.dogs {
  @extend .animals;
font-weight: bold;
color: red;

1 Answer

It's the same thing as the animal example, just select .message_box and use "@extend %super_link"