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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:09:01+00:00 2026-06-10T10:09:01+00:00

I have four equally sized div’s set up like this: <div id=top-left></div> <div id=top-right></div>

  • 0

I have four equally sized div’s set up like this:

<div id="top-left"></div>
<div id="top-right"></div>
<div id="bottom-left"></div>
<div id="bottom-right"></div>

Each is 50% of the page’s width and positioned absolutely. Like this, for example:

#top-right {
position: absolute;
top: 0px;
left: 50%;
width: 50%;
height: 50%;
}

The issue is when I try to scale a (large) background image via the CSS3 cover. This is the background image css I have so far:

background: #000 url('DSC01992.jpg') center center fixed no-repeat;
background-size: cover;
-moz-background-size: cover;
-o-(etc.)

Here is a live example: http://jsfiddle.net/TqQv7/

If you open the placeholder image here: http://placekitten.com/2000/1000 you will see that the image is not being scaled correctly.

Am I missing something?

  • 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-10T10:09:03+00:00Added an answer on June 10, 2026 at 10:09 am

    Removing the background-position and background-attachment portions of your short-hand background declaration will give you your desired results.

    Change:

    background: #000 url('http://placekitten.com/2000/1000') center center fixed no-repeat;
    

    To:

    background: #000 url('http://placekitten.com/2000/1000') no-repeat;
    

    Here is a demo: http://jsfiddle.net/TqQv7/1/

    Using background-position and background-attachment along with background-size : cover is anti-intuitive, you’re telling the browser to do two different things there, and it seems that modern browsers still default to the old method rather than the new.

    For more information about caveats regarding background-size check-out the MDN docs: https://developer.mozilla.org/en-US/docs/CSS/background-size

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

Sidebar

Related Questions

I have four divs in my html page something like this: the working fiddle
I have Four EditText with different background. It looks like this: I want to
i have four different forms on my page and each are ajax forms. I'm
I have four links and I would like content to appear in a div(.contentcont
i have four div in one parent and each contains one image. i want
i have four radio buttons , and i want to set a text for
I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController
I am trying to align four equally sized squares on an Android Screen &
I have four tables each with its own form, all these table share same
I have four rows in DB table. I would like them to order by

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.