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

The Archive Base Latest Questions

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

I am coding a website and trying to have something like www.airbnb.com : I

  • 0

I am coding a website and trying to have something like http://www.airbnb.com : I mean a static bar on the top (this part is ok) and a big image just below with a big centered button.

How can I manage to have this big image appearing normally on every screen resolution: for the moment, on 1920*1080px my image is just perfect with the big button centered. But, if i change my resolution, the image will be cropped or resized…

Do you know how can I do that (css or javascript) ?

Thank you so much !

  • 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-10T07:04:11+00:00Added an answer on June 10, 2026 at 7:04 am

    You could use CSS media queries to load a physically different sized image depending on the resolution e.g.

    Your original desktop background:

    body {
        background:url(images/bg1.jpg) no-repeat 0 0;
    }
    

    For screens with a max resolution of 800px:

    @media (max-width: 800px) {
    
        body {
            background:url(images/bg2.jpg) no-repeat 0 0;
        }
    
    }
    

    For screens with a max resolution of 480px:

    @media (max-width: 480px) {
    
        body {
            background:url(images/bg3.jpg) no-repeat 0 0;
        }
    
    }
    

    The resolution you choose are obviously up to yourself and the above are only given as examples.

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

Sidebar

Related Questions

I would like to redirect all requests, that coming to www.website.com/whatever to the variant
I'm trying to remove an area of my website with detach because I have
Currently I'm trying to create some coding short cuts for our website. Right now
I have a website registration page, and I'm trying to compile a list of
I have an newly installed SSL certificate on my website and I am trying
I am building a website to learn coding and am trying to build a
I'm building a website to learn coding, and am trying to build a Claim
I'm trying to write a query for an online coding event website, but I'm
I've been working on website recently and have come across a major problem :http://jimbob.webatu.com/index.html(you'll
I'm trying to use sub-domains in my ASP.NET website but I'm coming across a

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.