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 trialMichelle Dobbs
Full Stack JavaScript Techdegree Student 1,060 PointsThis 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;
}```
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<p class= "main-pg">My amazing website</p>
</body>
</html>
p.main-pg {
border = 4px;
style = solid;
border color = red;
}
1 Answer
Peter Smart
9,150 PointsHi 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; }
Michelle Dobbs
Full Stack JavaScript Techdegree Student 1,060 PointsThank you so much Peter!
Steven Parker
231,269 PointsSteven Parker
231,269 PointsThis 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.