Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Basics (2014) Basic Selectors Descendant Selectors

Make sure you're using the 'font-weight' property with the value 'bold'.

Intro to css chalange..... what am I missing? 20 min I wish I had back.

help

style.css
/* Complete the challenge by writing CSS below */
header span{
font-size: 26px;
}

.main-content p {
  color: slategrey
    font-weignt: bold;
}
index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lake Tahoe</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body> 
    <header>
      <span>Journey through the Sierra Nevada Mountains</span>
      <h1>Lake Tahoe, California</h1>
    </header>
    <p>
      Lake Tahoe is one of the most <span>breathtaking attractions</span> located in California. It's home to a number of ski resorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation.
    </p>
    <a href="#">Find out more</a>
    <div class="please-help">
      <h2>Check out all the Wildlife</h2>
      <p>
        As spawning season approaches, the fish acquire a humpback and protuberant jaw. After spawning, they die and their carcasses provide a feast for gatherings of mink, bears, and Bald eagles.
      </p>
      <a href="#">See the Wildlife</a>
    </div>
    <footer>
      <p class="p">All rights reserved to the state of <a href="#">California</a>.</p>
    </footer>
  </body>
</html>

7 Answers

Emmanuel C
Emmanuel C
10,636 Points

Hey Douglas,

I noticed the class name of the div element was changed to "please-help". That would be a reason why referencing it in the css with main-content isnt working. Try resetting the challenge, and entering the css that either Martin or myself provided. There is no need to change the HTML at all.

I want to thank you Martin for your help.

Doug

Emmanuel C
Emmanuel C
10,636 Points

Hey Douglas,

There's a typo in property name of font-weight. Also youre supposed to target the p element inside the footer element and change that color to slategrey. So try...

.main-content p {  
    font-weight: bold;
}

footer p {
    color: slategrey;
}
Martin Jones
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Martin Jones
Front End Web Development Techdegree Graduate 44,227 Points

Hi Douglas,

2 things, first is the semicolon after slate grey, second is the spelling of font-weight.

the final code should be

/* Complete the challenge by writing CSS below */
header span{
font-size: 26px;
}

.main-content p {
  color: slategrey;
    font-weight: bold;
}

These things are very easily done so don't stress over it, quite normal and where I love code editors :)

Hope this helps.

Martin thanks for your help, but it did not work?

what could be the problem?

Doug

Martin Jones
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Martin Jones
Front End Web Development Techdegree Graduate 44,227 Points

for the 3rd challenge you need to target the p element differently

/* Complete the challenge by writing CSS below */
/* Complete the challenge by writing CSS below */
header span{
font-size: 26px;
}

footer p {
    color: slategrey;
}

.main-content p {
    font-weight: bold;
}

Martin, thanks for your help.......I just dont see the problem...

I will try again tomorrow.

Thanks Martin for your help..