🤑 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
    • 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
  • Thomas Cobb
    Thomas Cobb
    3,222 Points

    Trouble incorporating the #top id element. Used an <img> instead of <p> for link to top. img does not show. help please

    Posted May 20, 2016 12:01am by Thomas Cobb
    Thomas Cobb
    3,222 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • Gavin Broekema
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Gavin Broekema
    Full Stack JavaScript Techdegree Student 22,443 Points

    Use class or type selector?

    Posted May 8, 2016 10:03pm by Gavin Broekema
    .a{fill-rule:evenodd;}techdegree
    Gavin Broekema
    Full Stack JavaScript Techdegree Student 22,443 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • Ira Salem
    Ira Salem
    10,331 Points

    Div inside of a div?

    Posted February 11, 2015 11:31am by Ira Salem
    Ira Salem
    10,331 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • melissa brown
    melissa brown
    4,670 Points

    linking CSS

    Posted January 22, 2015 6:31am by melissa brown
    melissa brown
    4,670 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    3 Answers

  • Claudia Restrepo
    Claudia Restrepo
    9,888 Points

    Benefit of using classes is not clear

    Posted January 10, 2015 1:20pm by Claudia Restrepo
    Claudia Restrepo
    9,888 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    3 Answers

  • akhil maddu
    akhil maddu
    1,422 Points

    How do I remove spaces between header,body,footer when i wrap all these in div and set it to wdth:740px; margin:auto?

    Posted December 12, 2014 4:40pm by akhil maddu
    akhil maddu
    1,422 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    3 Answers

  • Chris Weall
    Chris Weall
    1,263 Points

    HTML is not applying the CSS when viewed in browser (safari)

    Posted November 27, 2014 3:42am by Chris Weall
    Chris Weall
    1,263 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    10 Answers

  • Angela Smith
    Angela Smith
    763 Points

    Formatting not correct.

    Posted November 14, 2014 2:55pm by Angela Smith
    Angela Smith
    763 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • Marc Scaturro
    Marc Scaturro
    2,425 Points

    Why is there no Workspace in Guil Hernandez's CSS Class? It would be super helpful if he called out the hex values

    Posted August 28, 2014 5:40pm by Marc Scaturro
    Marc Scaturro
    2,425 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    5 Answers

  • Christopher Neal
    Christopher Neal
    833 Points

    Using " id='top' " Opposed To " name='top' "

    Posted August 20, 2014 7:16pm by Christopher Neal
    Christopher Neal
    833 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    2 Answers

  • Tejas Potdar
    Tejas Potdar
    6,594 Points

    When do you use class vs id elements?

    Posted August 14, 2014 11:43pm by Tejas Potdar
    Tejas Potdar
    6,594 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    4 Answers

  • Lee Ann VanWinckel
    Lee Ann VanWinckel
    1,480 Points

    My css is not showing (or rather applying) when I view it in a browser.

    Posted August 11, 2014 10:30pm by Lee Ann VanWinckel
    Lee Ann VanWinckel
    1,480 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    12 Answers

  • nathan marq
    nathan marq
    1,939 Points

    at the 3M 17S mark of the video ... why is a class .main-header... created instead of an ID since its used 1x pr page?

    Posted August 5, 2014 1:05am by nathan marq
    nathan marq
    1,939 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • Janise Bradford
    Janise Bradford
    5,664 Points

    can't figure this out

    Posted July 29, 2014 11:42pm by Janise Bradford
    Janise Bradford
    5,664 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    5 Answers

  • Laura Hill
    Laura Hill
    13,677 Points

    alignment

    Posted July 13, 2014 5:26pm by Laura Hill
    Laura Hill
    13,677 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    Class selectors

    Posted June 10, 2014 2:36pm by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • Steve Davies
    Steve Davies
    10,389 Points

    Struggling to get the concept of ID and DIVs

    Posted June 9, 2014 7:29pm by Steve Davies
    Steve Davies
    10,389 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    11 Answers

  • Chantal Gilbert
    PLUS
    Chantal Gilbert
    Courses Plus Student 132 Points

    div class="container" - why not "id"?

    Posted May 20, 2014 10:33am by Chantal Gilbert
    Chantal Gilbert
    Courses Plus Student 132 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    5 Answers

  • Sekhar Reddy
    Sekhar Reddy
    1,141 Points

    Overriding the styles in a CSS file?

    Posted April 9, 2014 9:09pm by Sekhar Reddy
    Sekhar Reddy
    1,141 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    1 Answer

  • Cecil Quist
    Cecil Quist
    2,851 Points

    css not working

    Posted February 19, 2014 2:32pm by Cecil Quist
    Cecil Quist
    2,851 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

    5 Answers

  • Rishi Reddy
    Rishi Reddy
    3,894 Points

    CSS vs. ID

    Posted February 6, 2014 9:48pm by Rishi Reddy
    Rishi Reddy
    3,894 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Class and ID Selectors

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