✨ 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 Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach
    • Close
  • Amy Tomey
    Amy Tomey
    12,847 Points

    content isn't centered, I don't know why?

    Posted on Jan 7, 2021 by Amy Tomey
    Amy Tomey
    12,847 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Kirt Perez
    Kirt Perez
    7,374 Points

    What's so important about using box-sizing here?

    Posted on Oct 23, 2020 by Kirt Perez
    Kirt Perez
    7,374 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Rafic Jouejati
    Rafic Jouejati
    14,976 Points

    Why not add box-sizing rule to normalize.css like you did for ul,ol ? thanks

    Posted on Jul 7, 2020 by Rafic Jouejati
    Rafic Jouejati
    14,976 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Chantal Baxter
    Chantal Baxter
    2,003 Points

    Mobile First resource is invalid link

    Posted on Apr 27, 2020 by Chantal Baxter
    Chantal Baxter
    2,003 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Ryan Rassoli
    Ryan Rassoli
    3,365 Points

    Mobile Content with Margin

    Posted on Jul 1, 2019 by Ryan Rassoli
    Ryan Rassoli
    3,365 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Jelena Dragicevic
    PLUS
    Jelena Dragicevic
    Courses Plus Student 3,768 Points

    I am a bit confused, how do I know what exactly I can put inside the media query vs outside of it?

    Posted on Mar 25, 2019 by Jelena Dragicevic
    Jelena Dragicevic
    Courses Plus Student 3,768 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • sunmin yun
    sunmin yun
    2,880 Points

    Media query - Approaching Mobile Websites first ?

    Posted on Jul 15, 2018 by sunmin yun
    sunmin yun
    2,880 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    2 Answers

  • Lisa Weil
    Lisa Weil
    4,919 Points

    I've finished the mobile version of my website but when I go to inspect it using my dev tools it looks different.

    Posted on Jun 14, 2018 by Lisa Weil
    Lisa Weil
    4,919 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Ramesh Kunwar
    PLUS
    Ramesh Kunwar
    Courses Plus Student 4,066 Points

    media query

    Posted on May 18, 2018 by Ramesh Kunwar
    Ramesh Kunwar
    Courses Plus Student 4,066 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • SeHyun Choi
    SeHyun Choi
    3,441 Points

    What are some good media query breaking points?

    Posted on Apr 6, 2018 by SeHyun Choi
    SeHyun Choi
    3,441 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • Agustin Hernandez
    Agustin Hernandez
    2,747 Points

    Why Did We Add 1000px

    Posted on Feb 28, 2018 by Agustin Hernandez
    Agustin Hernandez
    2,747 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • Alexander B
    Alexander B
    6,453 Points

    Could someone clarify Responsive Layout and min-width?

    Posted on Jan 9, 2018 by Alexander B
    Alexander B
    6,453 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • asliari
    asliari
    4,178 Points

    My Breakpoints work, but not exactly on the same width that i set.

    Posted on Dec 2, 2017 by asliari
    asliari
    4,178 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • Stefan Cutajar
    Stefan Cutajar
    7,747 Points

    Why 1000px?

    Posted on Nov 8, 2017 by Stefan Cutajar
    Stefan Cutajar
    7,747 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • yannis sousanis
    yannis sousanis
    7,199 Points

    I tried this on my own and it worked when it the screen when it was small but when I full expanded it the width was 100%

    Posted on Oct 19, 2017 by yannis sousanis
    yannis sousanis
    7,199 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Maya Shen
    Maya Shen
    7,056 Points

    How did the .main-footer {text-align: center;} make all container centered in this page?

    Posted on Sep 20, 2017 by Maya Shen
    Maya Shen
    7,056 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    0 Answers

  • tony kim
    tony kim
    990 Points

    after i removed width: 70% and margin: 0 auto from .container and added it to @media

    Posted on Aug 12, 2017 by tony kim
    tony kim
    990 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • ywang04
    ywang04
    6,762 Points

    The min-width value in media query

    Posted on Aug 3, 2017 by ywang04
    ywang04
    6,762 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Margarita Cascante Makarova
    PLUS
    Margarita Cascante Makarova
    Courses Plus Student 3,053 Points

    How to maintain the same sizing in all screens?

    Posted on May 21, 2017 by Margarita Cascante Makarova
    Margarita Cascante Makarova
    Courses Plus Student 3,053 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    0 Answers

  • nagamani palamuthi
    nagamani palamuthi
    6,160 Points

    can someone help me understand why we use the border-box and what happens when you add padding to left and right.

    Posted on Aug 24, 2016 by nagamani palamuthi
    nagamani palamuthi
    6,160 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • Fung How Lim
    Fung How Lim
    2,402 Points

    Adding padding 1em to base container rule instead of @media? Don't understand.

    Posted on Jul 9, 2016 by Fung How Lim
    Fung How Lim
    2,402 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • Ben Mohammad
    Ben Mohammad
    5,659 Points

    my code dont align to the centre. why?

    Posted on Jul 1, 2016 by Ben Mohammad
    Ben Mohammad
    5,659 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

  • Dylan Carter
    Dylan Carter
    4,780 Points

    media query not doing anything

    Posted on May 9, 2016 by Dylan Carter
    Dylan Carter
    4,780 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    3 Answers

  • Elena Paraschiv
    Elena Paraschiv
    9,938 Points

    caniuse/prefixes for border-box

    Posted on Mar 24, 2016 by Elena Paraschiv
    Elena Paraschiv
    9,938 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    2 Answers

  • Colton Shaw
    Colton Shaw
    12,634 Points

    Media Queries

    Posted on Feb 11, 2016 by Colton Shaw
    Colton Shaw
    12,634 Points
    • CSS
    • CSS Layout Basics
    • Getting Started with CSS Layout
    • Using a Mobile First Approach

    1 Answer

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.