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

  • Home
  • SEARCH
  • 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 6318205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:36:50+00:00 2026-05-24T15:36:50+00:00

I asked a question about this that was specific to my code and people

  • 0

I asked a question about this that was specific to my code and people were really helpful, so I picked the answer that was more susccessful, even though I did not solve my problem.

  • I am trying to get a large css background just like livingsocial has.
  • I have an image that is 1400 x 1050
  • My current resolution is: 1280 X 1024
  • My image keeps getting cut off from the bottom

Question(s):
Whats the best way to display large image backgrounds using css?

  • Do I need to have same background image in 4 different resolution and then use the image that best fits the current resolution user is using (is there some script for it)?
  • Do I need just one big image that I keep scaling using css
  • How are others tackling this problem?

I’m interested in knowing what is the best way to do this so that it works fine in all resolutions out of the three options above.

  • 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-24T15:36:51+00:00Added an answer on May 24, 2026 at 3:36 pm

    CSS3 Solution
    You could use background-origin and background-size in CSS3, but it’s not supported by IE8 and lower.

    PHP Solution
    You could GD2 to scale the image specific to the users browser, this solution would also involve JavaScript.

    Living Social Way
    They’re inserting an image with the <img/> tag and positioning it fixed.

    <style type="text/css">
    #background {
        z-index: -1; /* put it under everything*/
        position: fixed; /* make it stay in the same place, regardless of scrolling */
        top: 0;
        left: 0;
        overflow: hidden; /* clip the image */
        width: 100%; /* fill the full width of browser */
        min-height: 950px; /* show at least this much of the image */
    }
    #background img {
        width: 100%;
    }
    </style>
    
    <body>
        <div id="background"><img /></div>
        <div id="content"><!-- Your Content Here --></div>
    </body>
    

    Living Social has some more code applied to their <img/> tag, but it seems sort of redundant, perhaps it’s for better cross-browser support, I didn’t show it here.

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

Sidebar

Related Questions

I asked a similar question about this previously, but I did not specify that
I saw this question asked about C# I would like an answer for PHP.
This is a more specific question to follow up on [another question that I
Yes, I have already asked this question, but the problem is much more specific.
I asked a question about Garbage Collection in Java in this topic . But
I asked a question about different testing frameworks yesterday. This question can be found
Yesterday I asked this general question about decimals and their internal precisions. Here is
This stems from a previous question I asked - about a write conflict with
This is a follow up question to a previous question I asked about calculating
This is related to this question I asked earlier about syntax highlighting user-defined blocks

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.