🤑 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
  • eric zhou
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    eric zhou
    Front End Web Development Techdegree Student 381 Points

    When to use type selector, id selector, class selector

    Posted August 30, 2020 1:33pm by eric zhou
    .a{fill-rule:evenodd;}techdegree
    eric zhou
    Front End Web Development Techdegree Student 381 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • Arcel Derosena
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Arcel Derosena
    Front End Web Development Techdegree Student 5,241 Points

    For some reason I don't see any of the border styles when I refresh the page, did I type my code wrong?

    Posted July 20, 2020 4:28am by Arcel Derosena
    .a{fill-rule:evenodd;}techdegree
    Arcel Derosena
    Front End Web Development Techdegree Student 5,241 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    0 Answers

  • Clinton Hays
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Clinton Hays
    Front End Web Development Techdegree Graduate 18,156 Points

    Multiple selectors vs. Multiple classes

    Posted July 14, 2020 11:55am by Clinton Hays
    .a{fill-rule:evenodd;}techdegree seal-36
    Clinton Hays
    Front End Web Development Techdegree Graduate 18,156 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    0 Answers

  • Spencer Renfro
    PLUS
    Spencer Renfro
    Courses Plus Student 11,133 Points

    The workspace I had did not save work, do I have to start rewriting all the CSS and HTML?

    Posted March 12, 2020 3:52pm by Spencer Renfro
    Spencer Renfro
    Courses Plus Student 11,133 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    3 Answers

  • Sebastian Finé
    Sebastian Finé
    2,972 Points

    Why not make header id="header" and using a class for span?

    Posted March 1, 2020 9:30pm by Sebastian Finé
    Sebastian Finé
    2,972 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • alan ingram
    PLUS
    alan ingram
    Courses Plus Student 3,979 Points

    Multiple classes and IDs

    Posted April 13, 2019 10:23pm by alan ingram
    alan ingram
    Courses Plus Student 3,979 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • kellywilson4
    kellywilson4
    146 Points

    This is a very bad practice to teach new programmers

    Posted December 29, 2018 11:55pm by kellywilson4
    kellywilson4
    146 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • Arcel Derosena
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Arcel Derosena
    Front End Web Development Techdegree Student 5,241 Points

    Title in Lake Tahoe is missing from the top of the page, can anybody help me ?

    Posted November 12, 2018 7:41pm by Arcel Derosena
    .a{fill-rule:evenodd;}techdegree
    Arcel Derosena
    Front End Web Development Techdegree Student 5,241 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    0 Answers

  • Aurélien Boichat
    Aurélien Boichat
    1,214 Points

    I'cant see any change on my web page. All my CSS style, color, margin,background-color etc are in red? please help

    Posted August 18, 2018 3:35pm by Aurélien Boichat
    Aurélien Boichat
    1,214 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • pat barosy
    pat barosy
    6,759 Points

    secondary-content and t-border classes

    Posted July 3, 2018 5:03pm by pat barosy
    pat barosy
    6,759 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • mk37
    mk37
    10,271 Points

    does ID still have higher priority if its in external css file whilst CLASS is written in internal file?

    Posted June 14, 2018 1:29pm by mk37
    mk37
    10,271 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • Shane Phan
    Shane Phan
    1,436 Points

    No color specified in border in teacher's notes- what color used by default?

    Posted February 2, 2018 9:45pm by Shane Phan
    Shane Phan
    1,436 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • gene c
    gene c
    13,630 Points

    Why wasn't the secondary-content class removed in the HTML document?

    Posted December 17, 2017 6:55am by gene c
    gene c
    13,630 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • Adam Maley
    Adam Maley
    5,946 Points

    spacing in CSS rules, do they matter?

    Posted September 12, 2017 8:21pm by Adam Maley
    Adam Maley
    5,946 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • Aaron Michael Ho
    PLUS
    Aaron Michael Ho
    Courses Plus Student 1,299 Points

    Weight of competing CSS selectors

    Posted August 13, 2017 11:19pm by Aaron Michael Ho
    Aaron Michael Ho
    Courses Plus Student 1,299 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • May Stanley
    May Stanley
    4,182 Points

    I didn't get any border on my preview.

    Posted March 31, 2017 10:47am by May Stanley
    May Stanley
    4,182 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    3 Answers

  • Virginia Ceban
    Virginia Ceban
    1,510 Points

    what will happen if an element have 2 classes and they have the same properties, what then overrides?

    Posted November 19, 2016 12:34pm by Virginia Ceban
    Virginia Ceban
    1,510 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • Akashdeep Matharu
    Akashdeep Matharu
    1,719 Points

    Why we use ID

    Posted May 6, 2016 7:03am by Akashdeep Matharu
    Akashdeep Matharu
    1,719 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    5 Answers

  • Jason Ruby
    Jason Ruby
    2,867 Points

    ID selector vs. Class selector: Order of Precedence

    Posted January 18, 2016 7:53pm by Jason Ruby
    Jason Ruby
    2,867 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    3 Answers

  • YAWEI SONG
    YAWEI SONG
    9,168 Points

    Why can't I copy "border-top: 2px solid lightgrey" to "primary-content" and "footer"? Why should I create a new class?

    Posted December 12, 2015 8:04am by YAWEI SONG
    YAWEI SONG
    9,168 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • patrick sullivan
    patrick sullivan
    1,355 Points

    I am not seeing my borders when I refresh.

    Posted October 8, 2015 4:17pm by patrick sullivan
    patrick sullivan
    1,355 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    5 Answers

  • Dean Bowman
    Dean Bowman
    921 Points

    Imported Workspaces code does not display Class or ID styling in preview mode. Is this a bug?

    Posted August 26, 2015 10:38am by Dean Bowman
    Dean Bowman
    921 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • James Barrett
    James Barrett
    13,253 Points

    I don't understand why he's using ID's and classes in these specific elements?

    Posted June 26, 2015 12:17pm by James Barrett
    James Barrett
    13,253 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    5 Answers

  • jahl
    jahl
    2,370 Points

    Problem with Refresh

    Posted June 3, 2015 5:22am by jahl
    jahl
    2,370 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • Cuong Hoang
    Cuong Hoang
    1,769 Points

    Confused about classes... So you can assign an element more than one class? such as: <h5 class="min-ha min-ho">

    Posted April 22, 2015 6:03pm by Cuong Hoang
    Cuong Hoang
    1,769 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 Answers

  • malychansombat
    malychansombat
    2,926 Points

    ID vs Classes

    Posted March 23, 2015 6:16pm by malychansombat
    malychansombat
    2,926 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    3 Answers

  • Samuel Rhoades
    Samuel Rhoades
    2,191 Points

    I'm having trouble loading workspaces. Every time I click it, the website takes me to the top of the page. Help me pls!

    Posted March 7, 2015 9:32pm by Samuel Rhoades
    Samuel Rhoades
    2,191 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    1 Answer

  • David Bilson
    David Bilson
    13,819 Points

    Adding extra classes vs combining selectors

    Posted March 1, 2015 5:41pm by David Bilson
    David Bilson
    13,819 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    4 Answers

  • Damien Watson
    Damien Watson
    27,419 Points

    Reusing Classes vs Defining properties

    Posted February 24, 2015 11:32am by Damien Watson
    Damien Watson
    27,419 Points
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes

    2 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.