๐Ÿค‘ Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! ๐Ÿš€start learning today!

๐ŸŒŸ Dreaming of a bright future? ๐ŸŽ“ Ask about the Treehouse Scholarship program! ๐Ÿš€

โœจ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • Roald Jurrian Kamman
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Roald Jurrian Kamman
    Front End Web Development Techdegree Graduate 15,544 Points

    I prefer just giving classes to specific elements in the HTML.

    Posted June 30, 2020 6:16pm by Roald Jurrian Kamman
    .a{fill-rule:evenodd;}techdegree seal-36
    Roald Jurrian Kamman
    Front End Web Development Techdegree Graduate 15,544 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    2 Answers

  • Robert O'Toole
    Robert O'Toole
    6,366 Points

    index number

    Posted January 8, 2020 6:42pm by Robert O'Toole
    Robert O'Toole
    6,366 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    2 Answers

  • mk37
    mk37
    10,271 Points

    So confused with the MDN :nth-last-child() example?

    Posted January 9, 2019 1:10pm by mk37
    mk37
    10,271 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    2 Answers

  • babasariffodeen
    babasariffodeen
    6,475 Points

    Bravo Guil for the great explanation!

    Posted March 13, 2018 10:01pm by babasariffodeen
    babasariffodeen
    6,475 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    2 Answers

  • gene c
    gene c
    13,630 Points

    What is the difference between the CSS property background and background-color?

    Posted December 20, 2017 4:31pm by gene c
    gene c
    13,630 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    1 Answer

  • Ivana Lescesen
    Ivana Lescesen
    19,442 Points

    Is it better to use classes or descendant selectors

    Posted August 5, 2016 5:52pm by Ivana Lescesen
    Ivana Lescesen
    19,442 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    3 Answers

  • Charlie Sattgast
    Charlie Sattgast
    7,205 Points

    Unsolved :nth-child problem

    Posted May 10, 2016 6:33pm by Charlie Sattgast
    Charlie Sattgast
    7,205 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    3 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    Can't change the even-numbered list items

    Posted May 26, 2015 10:35pm by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    3 Answers

  • Gรถran Joelsson
    Gรถran Joelsson
    11,710 Points

    How about if I would like to target a <li> which is in a parent called <section>, but where there are several <sections>

    Posted April 22, 2015 2:29pm by Gรถran Joelsson
    Gรถran Joelsson
    11,710 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    2 Answers

  • Michael Trier-hofby
    Michael Trier-hofby
    2,251 Points

    I lolยดd at the argument joke...

    Posted March 11, 2015 9:57pm by Michael Trier-hofby
    Michael Trier-hofby
    2,251 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • :nth-child

    0 Answers

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.