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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:31:12+00:00 2026-06-02T19:31:12+00:00

Is there a way to setup a layout so that the header is 50px,

  • 0

Is there a way to setup a layout so that the header is 50px, body is 100% and footer is 50px?

I would like the body to use up the entire viewing area at minimum. I would like to have the footer and header to be on the screen at all times

  • 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-02T19:31:13+00:00Added an answer on June 2, 2026 at 7:31 pm

    I created an example in jsfiddle:

    UPDATED JsFiddle: http://jsfiddle.net/5V288/1025/

    HTML:

    <body>
        <div id="header"></div>
        <div id="content"><div>
            Content 
        </div></div>
        <div id="footer"></div>
    </body>
    

    CSS:

    html { height: 100%; }
    body {
        height:100%;
        min-height: 100%;
        background: #000000;
        color: #FFFFFF;
        position:relative;
    }
    #header {
        height:50px;
        width:100%;
        top:0px;
        left:0px;
        background: #CCCCCC;
        position:fixed;
    }
    #footer {
        height:50px;
        width:100%;
        bottom:0px;
        left:0px;
        background: #CCCCCC;
        position:fixed;
    }
    #content {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        height:100%;
        padding: 0 20px;
    }
    #content > div {
        padding: 70px 0;
    }
    

    Without border-box the content will be height 100% + 140px padding. With the border-box the content height will be 100% and the padding will be inside.

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

Sidebar

Related Questions

hi do you know if there is a shortcut way to setup your layout
Is there a way to tell scons to use a particular file to setup
Is there a way that when a user types python setup.py install to install
Okay, so I'd like to use a layout that has three divs (laid out
Is there a simple way to setup different .gitignore files for different remotes? I
Cascading deletes aren't setup on this particular database. Just wondering if there's a way
Is there a way to set up a function that will get the user
Is there any way to set up git such that it listens for updates
Is there a way, in Microsoft Word 2007, to set up a style that
is there way how to get name ov event from Lambda expression like with

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.