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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:40:32+00:00 2026-05-31T05:40:32+00:00

I have problem with the background div, when I resize the window too much,

  • 0

I have problem with the background div, when I resize the window too much, the browser cut off the left and top side of that div (background image).

How can I stop that?

That is my index.html

<div id='wrapper'>
        <div id='background'></div>
        <div id='menu'></div>
        <div id='lang'></div>
        <div id='content'></div>
        <div id='contact'></div>
    </div>

And css:

* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 12pt;
    font-family: Helvetica, sans-serif;
    text-align: center;
    width: 100%;
    height: 100%;

}

#wrapper {
    width: 900px;
    height: 400px;
    position: absolute;
    left: 15%;
    top: 25%;
}

#background {
    background-image: url('gfx/6_small.jpg');

    margin-left: -150px;
    margin-top: -150px;

        min-height: 657px;
        min-width: 1218px;

    z-index: -1;
    position: absolute;
}
  • 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-31T05:40:33+00:00Added an answer on May 31, 2026 at 5:40 am

    If you set a fixed pixel margin on #wrapper like so:

    #wrapper {
        width: 900px;
        height: 400px;
        position: absolute;
        left: 20px;
        top: 20px;
    }
    

    and remove the negative margin-left and margin-top from #background this should not occur.

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

Sidebar

Related Questions

I have a button with a transparent background on a wpf window. Problem is,
i have this script below that will resize the .content on window resize it
I have a problem using a small div that should hover over pics that
I have a menu at: http://www.spotlesswebdesign.com/dqhendricks/index.html The problem is, when you resize the window
Problem background I have a post-commit script for my SVN repository which archives &
I have the following problem. The background color in a ListView is set LightGreen
I have problem in some JavaScript that I am writing where the Switch statement
I have a div with an image in it, and the image is too
I have problem when I try to set a background to .header - nothing
I have a page with a wrapper div which contains a background image and

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.