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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:26:04+00:00 2026-05-13T07:26:04+00:00

I would like a div to take all the screen height, that’s why I

  • 0

I would like a div to take all the screen height, that’s why I found the following links:

  • http://www.webmasterworld.com/forum83/200.htm
  • http://www.thefutureoftheweb.com/blog/100-percent-height-interface

the tricks: make the container have a specified height, for example: body{height:100%} seems work fine, however, I found that: once you add some doctype claim, for example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

It doesn’t work, at least at Firefox 3.*, it doesn’t work. Any suggestions?

  • 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-13T07:26:04+00:00Added an answer on May 13, 2026 at 7:26 am

    The following works for me in HTML 4.01 strict (from your second link). No vertical scroll bar is displayed, even if the body is very long. Does this work for you?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
      <head>
        <style>
          html, body {
          /* get rid of default spacing on the edges */
          margin: 0;
          padding: 0;
    
          /* get rid of that 2px window border in Internet Explorer 6 */
          border: 0;
    
          /* fill the height of the browser */
          height: 100%;
    
          /* no more scroll bar */
          overflow: hidden;
        }
        </style>
      </head>
      <body>
        <div>
          many many lines of text
        </div>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like a separate DIV that's holding the input to also change in
I always was told to take out multiple properties in your css that you
I have an event attached to a div element that will remove the element
I have a structure of div s inside div s, something like: <div> <div>
I have an unlimited/unbound number of DIV tags that are floating to the left.
I am using the !important tag in CSS to take precedence over later rules.
once again, IE is proving to be the biggest pain in the world, on
I seem to be stuck and am not sure which is the best direction
I have a pretty simple HTML form where users can enter in information about
Anyone know how I can draw Polygons with GPolygon from Google Map without having

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.