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 CSS Basics Basic Selectors Descendant Selectors

Finally, target the paragraph that is a descendant of the footer element. Add a color property and set the value to slat

Finally, target the paragraph that is a descendant of the footer element. Add a color property and set the value to slat

style.css
/* Complete the challenge by writing CSS below */
header span {
  font-size: 26px;
}
.main-content ul {
  background-color: papayawhip;
}
 footer p 
{
  color: slategrey;
}
index.html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Developer Diane: Resume</title>
  <link rel="stylesheet" href="page.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main>
    <header>
      <img src="developer-diane.jpg" alt="Developer Diane coding on her laptop.">
      <h1>Developer Diane: Resume</h1>
      <span>email: diane@developerdiane.com</span>
    </header>          
    <section class="main-content">
      <h2>Experience</h2>
      <ul>
        <li>
          <h3>Super Web Design Shop</h3>
          <p>Junior Developer</p>
          <p class="date special">February 2020-present</p>
        </li>
        <li>
          <h3>Pretty Good Websites, Inc.</h3>
          <p>Web Development Intern</p>
          <p>July 2019-January 2020</p>
        </li>
      </ul>
    </section>
    <section>
      <h2>Awards and Achievements</h2>
      <ol>
        <li>Dev Ninja Award, November 2020</li>
        <li>Developer of the Month, October 2019</li>
        <li>Achieved rating of 6 kyu on <a href="https://www.codewars.com/">Codewars</a></li>
        <li>Certified Accessibility Specialist</li>
      </ol>
    </section>
    <footer>
      <p>Developer Diane. <small>Ā©2020</small></p>
    </footer>
  </main>
</body>
</html>

2 Answers

Hi Megan!

This passes all three tasks:

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

.main-content ul {
  background-color: papayawhip; /*** Task 2 ***/
}

footer p {
  color: slategrey; /*** Task 3 ***/
}

Which seems to be pretty much what you had, so I'm not sure exactly what the question is!?!

Lemmeeno if you need more info...

I hope that helps.

Stay safe and happy coding!

wait so its not my code the thing is buggy?

Hi Megan!

Yea - sometimes the challenges have inexplicable and confounding quirks.

In some cases, I have typed what I KNOW to be the correct answer and it won't pass, but if I copy and paste the EXACT SAME TEXT from some other source (via a Google search or even from the challenge question text itself), then it passes!?!

I discovered that workaround through much trial-and-error trying to move forward with certain Treehouse courses.

I hope that helps.

Stay safe and happy coding!