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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:14:08+00:00 2026-06-04T06:14:08+00:00

I am trying to create a bottom aligned, fluid width sticky footer that contains

  • 0

I am trying to create a bottom aligned, fluid width sticky footer that contains three links that are the same height as the container, which also have fluid widths.

I have created a top aligned version of this footer, where the links are not the full height of their container. It breaks if I set the bottom of the container to zero. I have put the code for this here:
http://jsfiddle.net/bHJR3/1/

How can I modify what I have so the bottom edge of the container is flush with the bottom of the window, and the links are the same height as the container?

I know how to do this through jquery but I am trying to avoid js if at all possible.

Thanks for any help.

EDIT:
Here’s a jquery solution I came up with in case of no answers if anybody wants to see it. http://jsfiddle.net/bHJR3/2/

  • 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-04T06:14:09+00:00Added an answer on June 4, 2026 at 6:14 am

    The reason it broke when you set bottom: 0 on #footer is because everything inside #footer had position: absolute. Absolutely positioned elements do not take up any space in the document flow and will not cause their parent elements to expand to contain them. Setting a height on #footer solves this. Setting height: 100% on the a tags will cause them to size relative to their parent element. You can keep div.content, but you would also have to set height: 100% on it.

    Add the following CSS to #footer:

    bottom: 0;
    height: 90px;
    

    Add the following CSS to A:

    height: 100%;
    line-height: 90px; /* matches the height from #footer to vertically center the link text */
    

    Remove div.content. It doesn’t seem necessary here.

    Edit

    You can center the footer by adding/changing the following CSS on #footer:

    width: 640px;
    left: 50%; /* positions left edge of #footer to center of page */
    margin-left: -320px; /* pulls footer to the left (width / 2) * -1 */
    

    Edit

    You can use max-width and a media query to alter the styling of the footer if the window width is < 640px:

    #footer {
        position: fixed;
        width: 100%;
        max-width: 640px;
        height: 114px;
        bottom:0;
        left: 50%;
        margin-left: -320px;
    }
    
    @media only screen and (max-width: 640px) {
        #footer {
            margin-left: auto;
            left: 0;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a footer that will slide from the bottom of the
I am trying to create a UITableView Section that contains two buttons aligned horizontally.
I am trying to create a footer that sticks to the bottom of the
I am trying to create a menu that slides up from the bottom. It
Trying to create a box that contains sentences (with spaces) and can have a
I'm trying to create a menu that will stick at the bottom of the
I'm trying to create a div which will have fixed width and flexible height
I'm trying to create a messagebox that is fixed to the bottom of a
I am trying to create a footer which spans the width of the screen.
I'n trying to create a simple slide panel that slides in from the bottom

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.