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

HTML Introduction to HTML and CSS (2016) Make It Beautiful With CSS Test: Styling by Element and Class

This keeps coming back wrong. Does anyone see what I am missing? I am a bit lost. Thanks in advance.

```p.main-pg { border = 4px ; style = solid; border color = red;

}```

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>

    <p class= "main-pg">My amazing website</p>

  </body>
</html>
styles.css
p.main-pg {
  border = 4px;
  style = solid;
  border color = red;

}
Steven Parker
Steven Parker
231,236 Points

This seems to be a duplicate of your previous question, see the answers(s) posted there. Click the little rectangle with 3 dots in it to reveal the option to delete this one. Oops, too late — the delete option is only available while the question is unanswered.

1 Answer

Hi Michelle, 2 pointers, you assign values to properties using a colon, not an equals sign. So it would be "border: 4px", not "border= 4px".

Then your selector names have to be accurate. border is spot on, but "border color" should be "border-color", with a dash, and style is "border-style".

There's LOADS of selectors, and anyone telling you they remember them all is a liar. Check the teacher notes in some of the videos for handy cheat sheets. They're worth bookmarking!

Hope this helps!

.main-pg { border: 4px; border-style: solid; border-color: red; }

Thank you so much Peter!