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

Hossein Kamalifar
PLUS
Hossein Kamalifar
Courses Plus Student 12,016 Points

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

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

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.

Robert Bennett
Robert Bennett
11,927 Points

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.

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

Robert Bennett
Robert Bennett
11,927 Points

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; }

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

.img-author { @extend .roundy; }

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