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 trialBrian Phillips
15,074 PointsStuck on Selectors question 5
I seem to be stuck on question 5 of the first selector challenge: basic selectors.
The goal is to Select the class '.intro' and set its font weight to bold.
Here is what I have:
<p class="intro">
<em>Lorem ipsum dolor</em> sit amet, consectetur adipiscing elit. Nunc pulvinar consequat tortor, nec venenatis erat elementum scelerisque. Curabitur sit amet risus nisi. Aenean aliquet euismod augue at viverra. Ut varius arcu in lorem iaculis ullamcorper. Integer eu rutrum quam.
</p>
and the CSS is here:
h1 {
color: blue;
}
p em {
color: red;
{
.intro {
font-weight: bold;
}
Any idea why this code isn't working?
1 Answer
Colin Marshall
32,861 PointsHave a good look at the p em line.
Brian Phillips
15,074 PointsBrian Phillips
15,074 Pointsthat would do it. got it now, thanks!
DeAndre King
2,674 PointsDeAndre King
2,674 Pointswhat was wrong with it?
Colin Marshall
32,861 PointsColin Marshall
32,861 PointsThe closing curly brace was facing the wrong way.