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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:29:45+00:00 2026-05-23T16:29:45+00:00

this must be a previously-answered question, but i’m unable to find an answer that

  • 0

this must be a previously-answered question, but i’m unable to find an answer that covers it.

the html/css below does a couple of things i find strange, and it does them in FF4/5, Chrome 12, and Safari 5, so at least this strangeness is consistent across browsers.

the strangeness in question:

  • the body element, with height:100%,
    stops at the bottom of the browser
    window. scrolling down reveals the
    white <html> beneath the grey
    <body>.
  • the blue <contentBorder> also stops at the bottom of the browser window.

both these, despite being contained, all the way up the DOM, in elements with height:100%. apologies if this question has already been answered, and thanks for directing me to a descriptive explanation of what’s happening here.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>simple height test</title>
    <style type="text/css">
        html, body {
            border: 0px;
            margin: 0px;
            height: 100%;
        }
        html {
            background-color: #FFFFFF;
        }
        body {
            background-color: #999999;
        }
        #contentBorder {
            width: 20px;
            height: 100%;
            background-color: #666699;
            float: left;
        }
        #contentContainer {
            width: 200px;
            height: 1000px;
            background-color: #333333;
        }
    </style>
</head>

<body>
    <div id="contentBorder"></div>
    <div id="contentContainer"></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-23T16:29:46+00:00Added an answer on May 23, 2026 at 4:29 pm

    Specifying the height for body and html as 100% will set them to be 100% of the browser window’s height. If you want the background to fill the total vertical height of the page, then it should work if you remove height: 100% from the first CSS block.

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

Sidebar

Related Questions

This must have been answered previously, but my Google powers are off today and
This must be a stupid question, but nevertheless I find it curious: Say I
I did previously ask a question about this, but must admit was biased against
This must be very simple. But I just can't seem to find the proper
This must be so simple, but I can't find it: How do you restore
I have answered this sort of in a previous question but now I have
As per this recent question , HTML 4 standard indicates that closing </TD> /
This must be a very stupid question because nobody else is asking it. I'm
This must be a duplicate. But with so many NSPredicate questions out there, I
This must have an obvious solution, but I'm stumped. We are developing an application

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.