Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Nathaniel Bennett
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Nathaniel Bennett
    Full Stack JavaScript Techdegree Graduate 21,820 Points

    I have completed the code correctly but am receiving the error

    Posted October 30, 2025 3:20am by Nathaniel Bennett
    .a{fill-rule:evenodd;}techdegree seal-36
    Nathaniel Bennett
    Full Stack JavaScript Techdegree Graduate 21,820 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • manqing cao
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    manqing cao
    Full Stack JavaScript Techdegree Student 3,125 Points

    I am not sure why this code is not working for choosing img nested in header element

    Posted July 30, 2022 4:23am by manqing cao
    .a{fill-rule:evenodd;}techdegree
    manqing cao
    Full Stack JavaScript Techdegree Student 3,125 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Tyler McDonald
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Tyler McDonald
    Full Stack JavaScript Techdegree Graduate 16,700 Points

    Using Child Combinators

    Posted April 15, 2022 4:14am by Tyler McDonald
    .a{fill-rule:evenodd;}techdegree seal-36
    Tyler McDonald
    Full Stack JavaScript Techdegree Graduate 16,700 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Karl Russell Sumando Menil
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Karl Russell Sumando Menil
    Full Stack JavaScript Techdegree Student 4,004 Points

    CSS Selectors Quickstart, Challenge Task 4 of 4, to be honest how do you do this?

    Posted February 7, 2021 2:06am by Karl Russell Sumando Menil
    .a{fill-rule:evenodd;}techdegree
    Karl Russell Sumando Menil
    Full Stack JavaScript Techdegree Student 4,004 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Payton Curry
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Payton Curry
    Full Stack JavaScript Techdegree Student 11,195 Points

    what am I doing wrong? I am using the direct child selector so why will it not accept my answer?

    Posted November 18, 2020 8:23pm by Payton Curry
    .a{fill-rule:evenodd;}techdegree
    Payton Curry
    Full Stack JavaScript Techdegree Student 11,195 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Chuck Comstock
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Chuck Comstock
    Full Stack JavaScript Techdegree Student 8,212 Points

    Help with Task 1 Question (CSS Selectors Quickstart)

    Posted August 11, 2020 7:43pm by Chuck Comstock
    .a{fill-rule:evenodd;}techdegree
    Chuck Comstock
    Full Stack JavaScript Techdegree Student 8,212 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Ryan Maloney
    Ryan Maloney
    4,956 Points

    Why is my CSS Selector (header > img) not accepted for this challenge?

    Posted May 1, 2020 8:36pm by Ryan Maloney
    Ryan Maloney
    4,956 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Tarek Itani
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tarek Itani
    Full Stack JavaScript Techdegree Student 2,102 Points

    This answer is not working on this challenge. No matter how I use the selector

    Posted February 3, 2020 9:14pm by Tarek Itani
    .a{fill-rule:evenodd;}techdegree
    Tarek Itani
    Full Stack JavaScript Techdegree Student 2,102 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    2 Answers

  • Tomas Solis
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tomas Solis
    Full Stack JavaScript Techdegree Student 2,537 Points

    Target the <img> element that is a descendant of the <header> element. Apply a bottom margin of 20px.

    Posted November 12, 2019 1:49am by Tomas Solis
    .a{fill-rule:evenodd;}techdegree
    Tomas Solis
    Full Stack JavaScript Techdegree Student 2,537 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Quadria Freeman
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Quadria Freeman
    Full Stack JavaScript Techdegree Graduate 15,680 Points

    Help Needed

    Posted June 17, 2019 9:47pm by Quadria Freeman
    .a{fill-rule:evenodd;}techdegree seal-36
    Quadria Freeman
    Full Stack JavaScript Techdegree Graduate 15,680 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • Joshua Fielding
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Joshua Fielding
    Full Stack JavaScript Techdegree Graduate 18,296 Points

    Question on selector quiz

    Posted May 10, 2019 8:12am by Joshua Fielding
    .a{fill-rule:evenodd;}techdegree seal-36
    Joshua Fielding
    Full Stack JavaScript Techdegree Graduate 18,296 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    2 Answers

  • Toni Hammond
    Toni Hammond
    13,730 Points

    Hello, I can not seem to get this code challenge, someone please help.

    Posted April 16, 2019 6:26am by Toni Hammond
    Toni Hammond
    13,730 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

  • hun eel
    hun eel
    256 Points

    Create a selector that targets a <div> that is an adjacent sibling of a <div>. Set a top margin of 15px.

    Posted March 2, 2019 2:51pm by hun eel
    hun eel
    256 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    2 Answers

  • Cynthia Smith
    Cynthia Smith
    8,031 Points

    adjacent sibling selector

    Posted February 28, 2019 12:47pm by Cynthia Smith
    Cynthia Smith
    8,031 Points
    • JavaScript
    • CSS Selectors Quickstart
    • Pseudo-classes and Combinators
    • Combinators Challenge

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord