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 The Power of Mixins

Angelo Aruta
Angelo Aruta
8,951 Points

Won't accept a valid answer.

I'm getting an error which tells me to change the background color to #369 even though I have already pass the value #369 into the button function/mixin.

index.html
<!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>
  <h1>Hampton's Blog</h1>
  <a class="menu_button" href="#">
    Menu
  </a>
  <div class="entry">
    <h1>Great Music</h1>
      <div class="content">
        <p>
            Here are some of my favorite bands from years past and present: Belle and Sebastian, Pixies, and Daft Punk. Listening to music allows me to focus when I'm programming. 
            <a href="#">Read More</a>
        </p>
    </div>
  </div>
</body>
</html>
style.scss
/* Write your SCSS code below. */
@mixin button($color, $size) {
  background: $color;
  width: $size;
  height: $size / 2;
}

.menu-button {
  @include button(#369, 50px);
}

2 Answers

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

You don't read properly lol

Re-read what the question asks you to do. Re-read your classes.

HINT: It didn't tell you to use a dash in the class.

Angelo Aruta
Angelo Aruta
8,951 Points

I'm so blind. Thank you Aurelian.

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

xD Were all been there xD just read what you select.

Read if the name matches on what you select. That's something I'v learned from my experience.

The more you do it the faster you will become to spot these things. Basically problem solving. I'm confident that I can solve pretty much any problem fairly quickly with CSS etc... but that's because of my previous experience when i was trying to figure out the stuff, step by step :D

You're not blind, you just need to read it again, and again and again xD

Glad it helped :)