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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:17:07+00:00 2026-06-18T03:17:07+00:00

If you reduce your window browser width while you’re on http://twitter.github.com/bootstrap/examples/carousel.html you can see

  • 0

If you reduce your window browser width while you’re on http://twitter.github.com/bootstrap/examples/carousel.html you can see that the background image aspect ratio changes.
I would like to maintain it (1:1), cropping my image on the left, or on the right, or aligning it horizontally.

What do you suggest?

  • 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-18T03:17:08+00:00Added an answer on June 18, 2026 at 3:17 am

    You’ve got 2 options, and both maintain the image ratio:

    Option 1

    background: url(yourimage.jpg) no-repeat center center / cover;
    

    The last part is the background-size: cover property. It will make the background image zoom in depending on the browser width, to make sure it fills the whole div.

    Example: https://i.stack.imgur.com/xnhev.png

    Option 2

    background: url(yourimage.jpg) no-repeat center center;
    

    It’s the same effect but without the zoom in part. The background will keep its aspect and remain centered, but if your browser width is bigger than your image width (in this case, 1500px), you’ll see the background-color (in this case white).

    Example: https://i.stack.imgur.com/NpXBK.png

    I recommend option 1. You only see the zooming effect if you resize your browser but almost nobody does, and the visitor will only see a filled background.

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

Sidebar

Related Questions

You can reduce the number of HTTP requests to speed up your site, such
i need exactly this map/reduce function in meteor: http://cookbook.mongodb.org/patterns/count_tags/ Read all tags from all
I am creating WP theme with responsive layout based on twitter bootstrap. You can
This is not your average My ScrollViewer isn't working question... Assume a window with
Suppose that your domain is domain.com and you have the following directories and files
I have seen a number of questions and answers on how to reduce your
I often need to run reduce (also called foldl / foldr, depending on your
What are the best practices, in general to reduce the file size of your
Map Reduce is a pattern that seems to get a lot of traction lately
Need a map reduce function by mongo in php This my mongo structure [_id]

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.