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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:14:28+00:00 2026-06-05T23:14:28+00:00

I have a centred fixed width content div , and if there isnt enough

  • 0

I have a centred fixed width content div, and if there isnt enough content (ie, an small error page) the height of it is smaller than the height of my web-browser.

This leaves the footer in the middle of the screen, the and the background of the content div not continued to the bottom. Just looking like shit.

Is there a way to force the content div to always fill the screen, if it’s contents are smaller than the current screen?

I realize this might have to use javascript, but I’m not very acquainted with it.

edit: If the user re-sizes the window, I’ll want it to update as-well.

edit: It looks like I can use the window.innerWidth, window.innerHeight properties

  • 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-05T23:14:30+00:00Added an answer on June 5, 2026 at 11:14 pm

    Sounds like what you want is a sticky footer, not a resize of the body.

    Check out Ryan Fait’s great tutorial on how to do this: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

    Here’s a demo of it in action: http://ryanfait.com/sticky-footer/

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

Sidebar

Related Questions

I have a fixed-width, relatively positioned, and centered #content div (shown as the outer
I have a fixed position div with a fixed height/width. The div is positioned
I've written a web page where the content sits within a fixed-width, centered div,
I have a website with a centered fixed width div (the div is centered
i have a HTML page with a centered div of 780px width and 8400px
I'm adding fixed bar on the bottom of page, first I have 100% width
I have this simple Layout in my page <div id=content-wrap> <form id=form1 runat=server> <asp:ScriptManager
i have a simple website: fixed width, variable height, centered. I want a background
I have a header div, fixed position at the top of the page. Inside
I have a centered div on my site, using a fixed width and margin:0

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.