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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:41:18+00:00 2026-05-24T03:41:18+00:00

how can I make this layout be always 100%, stick to the bottom and

  • 0

how can I make this layout be always 100%, stick to the bottom and not beyond so no scrollbars are needed?

enter image description here

http://jsfiddle.net/HsPtp/1/

Whatever I do I get some extra space on the bottom.

  • 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-24T03:41:19+00:00Added an answer on May 24, 2026 at 3:41 am

    You are correct in thinking that overflow:hidden will hide some of your content. The scroll bars are appearing because of your height/padding figures:

    1. On .colmask you have set height:100%. This is relative to the body.
    2. On #header you have set padding-bottom:16px.

    This means the full height of your page is 100% + 16px.

    Option 1:
    If you want your page to have no scrollbars and always show the bottom of the content you need to change your height/padding figures so that they add up to 100%.

    Example: http://jsfiddle.net/HsPtp/12/

    #header {height:5%;} /* Instead of using padding-bottom */
    .colmask {height: 90%;}
    #footer {height:4.5%;} /* Not 5% To allow for the 1px border you set */
    

    Option 2:

    As long as you know there isn’t going to be any other content other than the footer right down at the bottom you can do this: http://jsfiddle.net/HsPtp/6/

    html, body {overflow: hidden;}
    #footer {position:fixed; bottom:0;height:20px;} /* height added so effect can be seen */
    

    This essentially will cut off the extra 16px from the #header at the bottom, and then remove #footer from the flow of page and fix it at the bottom. So technically there will be 36px (16px #header padding + 20px #footer height) at the bottom of your page that will be cut off and covered by the footer.

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

Sidebar

Related Questions

How i can make this condition en VB.NET If e.KeyCode = [a-zA-Z0-9] Then 'Blah
Ok, let's see if I can make this make sense. I have a program
How can I make this work? switch(property.PropertyType){ case typeof(Boolean): //doStuff break; case typeof(String): //doOtherStuff
How can I make this java generic cast ? public interface IField { }
How can I make this input transparent? <input type=text class=foo> I've tried this but
How can I make this sliding panel example to slide down on mouseover and
How can I make this code work? class Meta @array = [:a,:b] def self.method_missing(name,
How can I make this link use the child selector without changing or removing
how can I make this jquery script close all previously opened children when entering
how can I make this work? $current_id=5; SELECT Id FROM table1 WHERE Output='yes' 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.