✨ 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
    • Positioning Page Content
    • Fixed Positioning
    • Close
  • Muhammad Ali
    Muhammad Ali
    6,752 Points

    Hy there Everyone. Need help about position:absolute,Relative properties

    Posted on Dec 5, 2020 by Muhammad Ali
    Muhammad Ali
    6,752 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    0 Answers

  • Mechadon blaze
    Mechadon blaze
    12,604 Points

    adding width: 100% did not change .main-header.

    Posted on May 28, 2019 by Mechadon blaze
    Mechadon blaze
    12,604 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    1 Answer

  • Elizabeth Ramos
    Elizabeth Ramos
    7,163 Points

    setting the top padding to 68px on the body shifts everything down, including the fixed positioned main header.

    Posted on Jun 1, 2018 by Elizabeth Ramos
    Elizabeth Ramos
    7,163 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    1 Answer

  • Patricia Martin
    Patricia Martin
    5,477 Points

    How to do so that fixed navigation bar doesn't cover content by clicking a button that drops to another part of the web.

    Posted on Feb 7, 2018 by Patricia Martin
    Patricia Martin
    5,477 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    1 Answer

  • Zoltan Parragi
    Zoltan Parragi
    6,007 Points

    Padding or margin

    Posted on Jan 12, 2018 by Zoltan Parragi
    Zoltan Parragi
    6,007 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    2 Answers

  • Godfrey M
    PLUS
    Godfrey M
    Courses Plus Student 2,696 Points

    why i am un able to position my sections in the container of the body element??

    Posted on Oct 17, 2017 by Godfrey M
    Godfrey M
    Courses Plus Student 2,696 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    0 Answers

  • john knight
    PLUS
    john knight
    Courses Plus Student 9,155 Points

    I Fairly got a bad time positioning the header in the browser.

    Posted on Sep 10, 2017 by john knight
    john knight
    Courses Plus Student 9,155 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    1 Answer

  • Daniel Amazigo
    PLUS
    Daniel Amazigo
    Courses Plus Student 11,357 Points

    why would the icon-location .svg image refuse to resize? I cleared cache and everything

    Posted on Apr 7, 2017 by Daniel Amazigo
    Daniel Amazigo
    Courses Plus Student 11,357 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    10 Answers

  • Mukund Narasimhan
    PLUS
    Mukund Narasimhan
    Courses Plus Student 9,441 Points

    https://w.trhou.se/511g6n4xrp the logo in not going down ????

    Posted on Mar 2, 2016 by Mukund Narasimhan
    Mukund Narasimhan
    Courses Plus Student 9,441 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    0 Answers

  • René Sánchez
    René Sánchez
    9,954 Points

    How can I position the header so that it appears fixed to the top only if i hover over the top of the viewport?

    Posted on Mar 1, 2016 by René Sánchez
    René Sánchez
    9,954 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    2 Answers

  • Milo Wyner
    Milo Wyner
    8,780 Points

    What are the reasons for giving the body a padding-top of 68px instead of say, giving the banner a top margin of 68px?

    Posted on Feb 24, 2016 by Milo Wyner
    Milo Wyner
    8,780 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    4 Answers

  • Akhter Rasool
    Akhter Rasool
    8,597 Points

    contents behind the container having fixed position remains hidden, and present behind the container.

    Posted on Feb 10, 2016 by Akhter Rasool
    Akhter Rasool
    8,597 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    1 Answer

  • Richard Targett
    Richard Targett
    4,960 Points

    With media queries, is styling once enough?

    Posted on Dec 7, 2015 by Richard Targett
    Richard Targett
    4,960 Points
    • CSS
    • CSS Layout Basics
    • Positioning Page Content
    • Fixed Positioning

    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.