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 8693221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:30:02+00:00 2026-06-13T00:30:02+00:00

Is scroll a valid value for the background CSS property in Internet Explorer? So,

  • 0

Is “scroll” a valid value for the background CSS property in Internet Explorer?
So, does Internet Explorer ignore the following rule because of the presence of “scroll”?

background: url('/images/site.gif') scroll 0;

This question was asked because there was an argument between two other users over the validity of the scroll attribute for Internet Explorer. Since I myself didn’t know if it was a valid attribute, I decided to post the question, and told the 2 of them to just follow the post. But, this is Stack Overflow, so of course my question is stupid / irrelavant / down voted. That begs the question, why is an answer to a stupid question up-voted?

  • 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-13T00:30:03+00:00Added an answer on June 13, 2026 at 12:30 am

    It is a valid property (See MSDN, MDN). But since you don’t believe the documentation, the only way to convince you is to show a screenshot. scroll is a valid property of background-attachment (which is included in the shorthand for background). In fact, it’s the default value.

    To proof this, we read the value of document.body.currentStyle.backgroundAttachment. It’s even supported in IE6!

    javascript:alert(document.body.currentStyle.backgroundAttachment)

    In your initial comment, you said “that is background-attachment: Not background.”. So, taken that you still do not believe the documentation, I’ll show yet another proof:

    1. Assume that fixed is not a valid value for the background shorthand.
    2. Then we derive that background-attachment is not included in the shorthand, because we know from the top part of this answer that "fixed" is a valid value of background-attachment.
    3. So, if we use body {background: url('/favicon.ico') fixed 0;}, then alert(document.body.currentStyle.backgroundAttachment); should display “scroll”, because it is the default value of background-attachment and we assumed that background-attachment is not supported by the background short-hand.
    4. But the alert shows “fixed” ( the page in the screenshot is http://jsfiddle.net/Nvfmt/ ).
      alerts fixed
    5. Contradiction. So we conclude that “scroll” is a valid value for background.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I scroll my background at a speed value of float speed = 50; I
Is there any valid way to show dummy scroll bar in firefox?
while scroll the listview, the Layouts background gets flickering. that is the layout is
To scroll down my chat DIV I am using the following code which is
Is there a 'valid' solution for the dialog to scroll with the scrollbar instead
If I enter this URL in a browser it returns to me the valid
Scroll to the bottom of the page: https://accounts.google.com/SignUp The checkbox itself is just CSS
The Question Does anyone know of technical reasons for avoiding web views inside scroll
EDIT : Scroll down to see the updated code. I would like to build
This code disabled mouse scroll functionality, when i click on the document. $(document).on(click, function

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.