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
  • Talha Rashid
    PLUS
    Talha Rashid
    Courses Plus Student 4,645 Points

    When I Use in-line block why my image moves away from the center.Does anyone tell?

    Posted June 19, 2020 9:23am by Talha Rashid
    Talha Rashid
    Courses Plus Student 4,645 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • Jake Almendarez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jake Almendarez
    Front End Web Development Techdegree Student 4,250 Points

    why inline block instead of inline?

    Posted June 6, 2020 12:47am by Jake Almendarez
    .a{fill-rule:evenodd;}techdegree
    Jake Almendarez
    Front End Web Development Techdegree Student 4,250 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • vamosrope14
    vamosrope14
    14,932 Points

    How do I know WHEN to center the container holding content?

    Posted May 16, 2019 2:30am by vamosrope14
    vamosrope14
    14,932 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • Lisa Drevillon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Lisa Drevillon
    Front End Web Development Techdegree Student 7,581 Points

    Hi, I am following the solutions step by step, but the media query isn't working. Can explain help explain why?

    Posted January 2, 2019 10:33pm by Lisa Drevillon
    .a{fill-rule:evenodd;}techdegree
    Lisa Drevillon
    Front End Web Development Techdegree Student 7,581 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    3 Answers

  • Alexey Kulikov
    Alexey Kulikov
    11,124 Points

    Using inline-blocks in header instead of floats

    Posted November 8, 2018 1:03pm by Alexey Kulikov
    Alexey Kulikov
    11,124 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • v s
    v s
    366 Points

    Can you please tell me why my media query not working? I tried writing the code outside the media query, worked fine

    Posted October 28, 2018 2:30pm by v s
    v s
    366 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • Nathalie Agnekil
    Nathalie Agnekil
    6,665 Points

    Why ems and pxs, and when?

    Posted June 4, 2018 8:10am by Nathalie Agnekil
    Nathalie Agnekil
    6,665 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    3 Answers

  • baderbouta
    baderbouta
    7,804 Points

    Wondering why my "Best City Guide" text is not aligning with my nav-bar...

    Posted May 18, 2018 4:32pm by baderbouta
    baderbouta
    7,804 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • Derrick French
    Derrick French
    3,370 Points

    Exact same code behaving differently in atom. When I use atom the banner adheres to the container rule below

    Posted February 27, 2018 2:29pm by Derrick French
    Derrick French
    3,370 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • Derrick French
    Derrick French
    3,370 Points

    Please can someone critique my code, finished project trying to improve

    Posted February 27, 2018 8:08am by Derrick French
    Derrick French
    3,370 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • tomd
    tomd
    16,701 Points

    I've been stuck for hours. My columns just wont work..

    Posted February 20, 2018 6:43pm by tomd
    tomd
    16,701 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    3 Answers

  • Mustafa Khan
    Mustafa Khan
    6,224 Points

    Where did I mess up?

    Posted February 10, 2018 2:35am by Mustafa Khan
    Mustafa Khan
    6,224 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • Adam Maley
    Adam Maley
    5,946 Points

    @media (min-width: 769px) {

    Posted January 28, 2018 10:29pm by Adam Maley
    Adam Maley
    5,946 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    1 Answer

  • gene c
    gene c
    13,630 Points

    How and when do I determine whether to style the CSS using the normal method or using the media queries method?

    Posted December 27, 2017 4:05am by gene c
    gene c
    13,630 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,237 Points

    Where did the li's go?

    Posted November 21, 2017 12:43am by Sean Flanagan
    Sean Flanagan
    33,237 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    3 Answers

  • Brian Besler
    Brian Besler
    11,493 Points

    When you target the .container DIV where should it be wrapped in the HTML for this excercise?

    Posted October 6, 2017 10:43am by Brian Besler
    Brian Besler
    11,493 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    2 Answers

  • Cole Atkinson
    Cole Atkinson
    2,854 Points

    Can't get menu list items to align vertically in the header

    Posted August 9, 2017 2:12pm by Cole Atkinson
    Cole Atkinson
    2,854 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    3 Answers

  • lesak
    lesak
    6,260 Points

    Media queries' widths How do you know which width to set for the different screen sizes when using media queries?

    Posted April 20, 2016 1:25pm by lesak
    lesak
    6,260 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    4 Answers

  • Gabriel Ward
    Gabriel Ward
    20,222 Points

    Centering the main-nav

    Posted January 26, 2016 11:20pm by Gabriel Ward
    Gabriel Ward
    20,222 Points
    • CSS
    • CSS Layout Basics
    • CSS Layout Project
    • Adding Media Queries for Large Screens

    2 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