Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

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

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

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

  • 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
  • Alexander Perry
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Alexander Perry
    Front End Web Development Techdegree Student 11,395 Points

    Why do we use a div tag to wrap instead of the main tag, when the main tag seems to be better semantic code?

    Posted April 6, 2020 3:54am by Alexander Perry
    .a{fill-rule:evenodd;}techdegree
    Alexander Perry
    Front End Web Development Techdegree Student 11,395 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • vamosrope14
    vamosrope14
    14,932 Points

    Why is it not valid to place elements outside when <body> element it is used as the wrapper?

    Posted May 13, 2019 7:22pm by vamosrope14
    vamosrope14
    14,932 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Jace Ganshirt
    Jace Ganshirt
    8,661 Points

    Why am I not seeing the initial changes within style.css when using visual studio code with the zip download?

    Posted January 17, 2019 6:46pm by Jace Ganshirt
    Jace Ganshirt
    8,661 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Ashim Poudyal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ashim Poudyal
    Full Stack JavaScript Techdegree Student 5,824 Points

    I still dont understand why use wrapper. can someone clarify please!

    Posted January 15, 2019 4:50pm by Ashim Poudyal
    .a{fill-rule:evenodd;}techdegree
    Ashim Poudyal
    Full Stack JavaScript Techdegree Student 5,824 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    3 Answers

  • mk37
    mk37
    10,271 Points

    what is the recommended layout wrapper width should i use?

    Posted July 23, 2018 2:27pm by mk37
    mk37
    10,271 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Lisa Weil
    Lisa Weil
    4,919 Points

    Keyboard shortcut to move selected text over one space?

    Posted April 4, 2018 5:06pm by Lisa Weil
    Lisa Weil
    4,919 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    0 Answers

  • babasariffodeen
    babasariffodeen
    6,475 Points

    Applying background to body instead of html?

    Posted March 21, 2018 11:11am by babasariffodeen
    babasariffodeen
    6,475 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    2 Answers

  • Philip Kroupoderov
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Philip Kroupoderov
    Front End Web Development Techdegree Graduate 21,641 Points

    Why is the body background color being applied to the entire web page (in my code)??

    Posted January 21, 2018 9:32pm by Philip Kroupoderov
    .a{fill-rule:evenodd;}techdegree seal-36
    Philip Kroupoderov
    Front End Web Development Techdegree Graduate 21,641 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    3 Answers

  • Stephanie Shaw
    Stephanie Shaw
    3,373 Points

    How to remove link underlines in normalize.css?

    Posted November 30, 2017 10:28am by Stephanie Shaw
    Stephanie Shaw
    3,373 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    2 Answers

  • Masha Blair
    Masha Blair
    13,005 Points

    Hello, I need to know how recent is the class "CSS Layouts Basics"? When was it created? Is it still current info?

    Posted May 18, 2017 4:21pm by Masha Blair
    Masha Blair
    13,005 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    3 Answers

  • krishna aryal
    krishna aryal
    6,897 Points

    why div is flowing in console

    Posted April 4, 2017 3:00pm by krishna aryal
    krishna aryal
    6,897 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    9 Answers

  • Robert Homan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Robert Homan
    Front End Web Development Techdegree Student 9,437 Points

    ID vs. Class for the wrapper?

    Posted March 31, 2017 9:11pm by Robert Homan
    .a{fill-rule:evenodd;}techdegree
    Robert Homan
    Front End Web Development Techdegree Student 9,437 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Hayden Bradfield
    Hayden Bradfield
    1,797 Points

    Why are there margins even though I set margin to 0?

    Posted October 20, 2016 2:40pm by Hayden Bradfield
    Hayden Bradfield
    1,797 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    3 Answers

  • brandonlind2
    brandonlind2
    7,823 Points

    I don't understand the reason for having a layout wrapper

    Posted April 27, 2016 5:56am by brandonlind2
    brandonlind2
    7,823 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    4 Answers

  • WANG YONGXIN
    WANG YONGXIN
    1,618 Points

    why I should add backgroud-color style to html element when the body element is centered?

    Posted March 17, 2016 3:17am by WANG YONGXIN
    WANG YONGXIN
    1,618 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Travis Johnson
    Travis Johnson
    4,990 Points

    Content will not center after creating "wrapper" rule.

    Posted February 24, 2016 2:18pm by Travis Johnson
    Travis Johnson
    4,990 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    8 Answers

  • Jacob Brech
    Jacob Brech
    7,224 Points

    Background-color and image, little confused..

    Posted February 10, 2016 11:18am by Jacob Brech
    Jacob Brech
    7,224 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    2 Answers

  • Julian Betancourt
    Julian Betancourt
    11,466 Points

    Using One Wrapper vs several wrappers

    Posted December 23, 2015 1:33am by Julian Betancourt
    Julian Betancourt
    11,466 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Vamsi Pavan Mahesh Gunturu
    Vamsi Pavan Mahesh Gunturu
    4,541 Points

    what if I use a body

    Posted November 25, 2015 2:11pm by Vamsi Pavan Mahesh Gunturu
    Vamsi Pavan Mahesh Gunturu
    4,541 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    1 Answer

  • Kenandrae Wheatt
    Kenandrae Wheatt
    3,944 Points

    body wrapper doesn't work in chrome

    Posted November 20, 2015 6:10pm by Kenandrae Wheatt
    Kenandrae Wheatt
    3,944 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Creating a Layout Wrapper

    3 Answers

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