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 Improve Your Workflow with Sass Practice Extending a Selector

Next, create a placeholder called warning. Set its font-weight to bold and color to red.

h

style.scss
.roundy {
  width: 150px;
  border-radius: 50%;
}

.img-author {
  @extend .roundy;
}
.warning {
  font-weight: blod;
  color: red;
}

5 Answers

the syntax for a placeholder is to use the percent sign % not a dot. you are targeting a class called warning, not creating a placeholder called warning. then of course spell bold correctly.

As per James South said, .img-author { @extend .roundy; You put a dot or period before roundy. @extend :roundy; It should be this : before roundy.

I hope this helps.

thanks:)

%warning { font-weight: bold; color: red; }

Hi, Hossein Kamalifar This is just a typo!!! font-weight: blod; it should read == "bold"

Simple mistake, I always try to proof read my work...
This should help .warning { font-weight: bold; color: red; }

thanks for answering my question :)

.roundy { width: 150px; border-radius: 50%; }

.img-author { @extend .roundy; }

%warning { font-weight: bold; color: red; }