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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:03:43+00:00 2026-05-28T17:03:43+00:00

Below is the simple layout. I need help with this because when I scaling

  • 0

Below is the simple layout. I need help with this because when I scaling the font in browsers by pressing CTRL and scrolling up (zooming) then this this layout dont behave like I expected.

What I want is that #allWrapper should scale its dimensions with body so the white background will be on the all width. If You zoom font enough and horizontal scroll bar appear then try to scroll to the right and You will notice that the allWrapper is smaller than body and color of the body is showing instead of white. I cant make body white because footer will be in this color too (not white). Here is the short code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
div,body{margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit;vertical-align: baseline;}
body{font-family:Arial,sans-serif;background-color:#066789;}
#allWrapper{background-color:white;}
#header .content {height:90px;background-color:white; position:relative;}
#mainWrapper{margin-top:0.5em; line-height:1.5;}
.center {width:980px;margin:0px auto;}
</style>
</head>
<body>
<div id="allWrapper">
<div id="header">
    <div class="center">
        <div class="content">
        HEADER
        </div>
    </div>
</div>
<div id="content">
    <div id="mainWrapper">
        <div class="center">
            <div class="content">MAIN CONTENT</div>
        </div>
    </div>
</div>
</div>
</body>
</html>
  • 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-28T17:03:44+00:00Added an answer on May 28, 2026 at 5:03 pm

    Add the following to #allWrapper:

    min-width:980px;
    

    The issue is the html/body elements are 100% of the visible screen (not the entire layout) and #allWrapper is staying contained within those. The same problem can be seen if the browser is resized to a size less wide than 980px. By adding the min-width to #allWrapper, it forces #allWrapper to stay as wide as the contained box. If you prefer, min-width could be added to body instead.

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

Sidebar

Related Questions

Below is the code of a simple html with a table layout. In FF
Below just a simple race between 2 button in 2 threads, and this will
I would like to do some simple layout math. I remember the syntax below
I have created a simple layout with Html and CSS which is like below
I need help on how to change my code below to use my own
The simple demo below captures what I am trying to do. In the real
I have a simple code below: import java.util.ArrayList; public class BoidList extends ArrayList {
Below I have a very simple example of what I'm trying to do. I
The simple code block below can be served up in a static HTML page
The below code is very simple. I have a jQuery autocomplete bound to an

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.