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

🤑 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

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

  • 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
    • 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
  • 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
    • Showing results for:
    • CSS
    • CSS Basics (2014)
    • Basic Selectors
    • Reusing Classes
    • Close
  • 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 on Aug 30, 2020 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 on Jul 20, 2020 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 on Jul 14, 2020 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 on Mar 12, 2020 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 on Mar 1, 2020 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 on Apr 13, 2019 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 on Dec 29, 2018 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 on Nov 12, 2018 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 on Aug 18, 2018 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 on Jul 3, 2018 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 on Jun 14, 2018 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 on Feb 2, 2018 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 on Dec 17, 2017 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 on Sep 12, 2017 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 on Aug 13, 2017 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 on Mar 31, 2017 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 on Nov 19, 2016 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 on May 6, 2016 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 on Jan 18, 2016 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 on Dec 12, 2015 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 on Oct 8, 2015 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 on Aug 26, 2015 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 on Jun 26, 2015 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 on Jun 3, 2015 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 on Apr 22, 2015 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 on Mar 23, 2015 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 on Mar 7, 2015 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 on Mar 1, 2015 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 on Feb 24, 2015 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.