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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:45:53+00:00 2026-05-21T02:45:53+00:00

I have a simple style for my CSS that stretched my background beautifully in

  • 0

I have a simple style for my CSS that stretched my background beautifully in Firefox and Chrome, but with this code, IE centers the background and doesn’t stretch accordingly.

html{
     background: url(images/bg4.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
     background-size: cover;
   } 

I take it IE doesn’t recognize tags 2 through 5, but is there a way to accomplish this same sort of effect with additional code or am I stuck with IE just centering the image and not stretching it?

Thanks

(Also, I would have posted on my normal account but openID is giving me fits right now)

  • 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-05-21T02:45:54+00:00Added an answer on May 21, 2026 at 2:45 am

    write a rule that targets IE only

    html{
         background: url(images/bg4.jpg) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
         background-size: cover;
    background:url(images/bg4.jpg) no-repaeat center center\9; // this rule will affect all IE verisons but other browsers
       } 
    

    You might want to make a custom image for IE, if you can’t archieve what you want with the same image. For exmaple, make bg5.jpg with already sstretched background.

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

Sidebar

Related Questions

i have the following simple code, but it doesn,t work <ul> <li id=one onmouseover=this.style.background-color='white';>
i have this simple layout css which provide 3 rows layout css code <style
I've got a simple button with a single css-style, like this: <button style=text-decoration:underline>That's a
I have some pretty simple HTML and CSS that doesn't work in Internet Explorer
I have this simple code: <html> <head> <script src=jquery-1.5.1.min.js type=text/javascript></script> <script type=text/javascript> $(function() {
This is a very simple issue of CSS specificity, but I really can't figure
Let's assume that we have simple jQuery code like the following: var $document =
I have an extremely simple page that isn't displaying properly in IE6. In this
I have a simple HTML/CSS list that is displayed inline. I am using a
I have a simple image rotator script that I'm trying to build but I

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.