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

Brian Phillips
Brian Phillips
15,074 Points

Stuck 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
Colin Marshall
32,861 Points

Have a good look at the p em line.

Brian Phillips
Brian Phillips
15,074 Points

that would do it. got it now, thanks!

what was wrong with it?

Colin Marshall
Colin Marshall
32,861 Points

The closing curly brace was facing the wrong way.