Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:12:15+00:00 2026-06-15T23:12:15+00:00

When you move the body element on a particular page in Chrome (testing v23)

  • 0

When you move the body element on a particular page in Chrome (testing v23) using position: relative; top: 100px; as example, the background is still applied to the whole viewport.

Is this a Chrome bug or could anyone explain the behavior / supply a flexible solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:12:15+00:00Added an answer on June 15, 2026 at 11:12 pm

    This is actually expected behavior for all browsers: while the body element is indeed being offset 100 pixels from the top, the background itself is being seamlessly propagated to the viewport as described in the first part of this answer. It’s probably a holdover from the era of HTML presentational attributes, where setting background attributes on body allowed the background to be propagated to the viewport, giving an appearance of applying a background to the whole page.

    If you want to restrict the background to only the body element, simply give html a background color that is anything other than transparent, or give it a background image. The viewport will then use the background of html instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I move an element to the end of the body? Using jQuery,
I'm using a ContentPlaceHolder and would like to move the onload=Carousel() from the body
Possible Duplicate: Position an element from the end of the document at the top
I am trying to position a span element relative to the upper-right corner of
I would like to move a circle along a circular path using HTML/CSS/JavaScript. Is
I'm using the following code to allow users to resize a DIV element vertically,
How can you apply a translate to an element but make it move to
I'm trying to animate a background image to move down a set amount of
I want to set attributes to span element when the mouse move over a
I found this Is it possible to move the text from an element to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.