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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:41:32+00:00 2026-05-25T20:41:32+00:00

I have a header bar that is positioned using position:absolute; and I cannot seem

  • 0

I have a header bar that is positioned using position:absolute; and I cannot seem to get it to not overlap my content.

enter image description here

Here is the html i’m using for my example:

<div class="ui-page ui-page-active">
    <div class="ui-header">
        <div class="ui-title ui-title-h1">
            Page Title 1
        </div>
    </div>
    <div class="ui-content">
        <a href="#pg-two">Page Two</a>
    </div>
    <div class="ui-footer">
        <div class="ui-title ui-title-h3">
            Page Footer 1
        </div>
    </div>
</div>

and here is my css

html,body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0; 
}
.ui-page {
    background-color: #bbb;
    height: 100%;
    width: 100%;
    display: block;
    position: relative;
}
.ui-page-inactive {
    display: none;  
}
.ui-page-active {
    display: block; 
}
.ui-header {
    position: absolute;
    top: 0;
    background-color: #000;
    width: 100%;
    display: inline-block;
}
.ui-content {

}
.ui-footer {
    position: absolute;
    bottom: 0;
    background-color: #000;
    width: 100%;
    display: inline-block;
}
.ui-title {
    text-align: center;
    color: #fff;
    padding: 4px;
    line-height: 150%;
}
.ui-title-h1 {
    font-size: 1.5em;
    font-weight: 900;
}

My end goal is to have a header bar always at the top, a footer bar always at the bottom and for the content to fill the centre. The content div does not actually need to fill 100%, I just don’t want it to be blocked by either the header or footer.

  • 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-25T20:41:33+00:00Added an answer on May 25, 2026 at 8:41 pm

    An easy way would be to have either padding-top or margin-top (I’m not sure which) on .ui-content set to the height of your header, that would push .ui-content down so there isn’t overlap.

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

Sidebar

Related Questions

I have a fixed position header bar that is about 40px heigh. It is
I have a notification bar that is 'hiding' behind my header by default: It
Something basic that i don't understand: I have header.php with navigation bar for my
I have a header and menu bar that I have fixed to stay at
I have a design where there is a header set at absolute position with
Imagine I have a navigation bar in my page header, with a number of
I have a header file, lets say Common.h, that is included in all of
With JQuery UI I am looking to have a small header bar slide down
so I have a page that has a fixed link bar on the side.
I have a setup that requires a header div and a footer div to

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.