Questions tagged [sticky-footer]

Sticky Footer is a CSS technique used to anchor the footer section to the bottom of the page, regardless of the page's height. When the page height is less than the viewport, the Sticky Footer will be at the bottom of the viewport, and when the page height is longer than the viewport, the Sticky Footer will be at the bottom of the page.

Here's the canonical Sticky Footer Implementation:
http://ryanfait.com/html5-sticky-footer/

Here's a bare bones example:

<html>
    <head>
        <link rel="stylesheet" href="layout.css" ... />
    </head>
    <body>
        <div class="wrapper">
            <p>Your website content here.</p>
            <div class="push"></div>
        </div>
        <div class="footer">
            <p>Copyright (c) 2008</p>
        </div>
    </body>
</html>
* {
  margin: 0;
}
html, body {
  height: 100%;
}
.wrapper {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -4em;
}
.footer, .push {
  height: 4em;
}

.footer {
  background: yellow;
}

Simple Demo in Plunker

screenshot

754 questions
-1
votes
1 answer

Make a horizontal scroll bar sticky/fixed at the bottom on vertical scroll?

I have a table that has a set height & am trying to get the horizontal scroll bar to remain sticky (fixed) to the bottom of the page when scrolling vertically - is there anyway I can achieve this? Either pure CSS or involving JS
codfish555
  • 96
  • 1
  • 15
-1
votes
1 answer

Footer overlapping content

Thanks for you're help. You can view this online The problem is my footer. It won't seem to stay below the content. I attempted to use Matthew James Taylor's method which is not working for me. I need the footer to stay below the content when the…
SSHUC
  • 13
  • 1
  • 6
-1
votes
3 answers

When zooming in, why does the footer overlap its preceding content

here is the sample html:
testing
its css: * { padding: 0px; margin: 0px; } body, html { …
dave
  • 14,991
  • 26
  • 76
  • 110
-1
votes
2 answers

Trouble with sticky footer, 2 column responsive layout with wide browser support

I need to create the following layout: Two equal height columns Sticky footer (positioned at bottom in light content, pushed off page in heavy content) Responsive (left nav column collapses to 100% at mobile breakpoint) Wide browser support (need…
-1
votes
3 answers

How to include copyright info in my footer of the web page?

The copyright info comes as next menu item, but I want it to come on the next row inside the footer as a centered text so tell me please how I can achive this. Please help. thanks in advance. /* ----- FOOTER ----- */ .footer-nav{ …
-1
votes
2 answers

Sticky footer works on all but one page

Page is here I am using a sticky footer, which works fine everywhere but my portfolio page. The gallery is relatively positioned, and is overflowing from it's parent div. The footer is sticking to the bottom of the parent, rather than the page.…
user2287917
  • 91
  • 3
  • 14
-1
votes
2 answers

Stick Footer bottom of the page depending of content

I have a footer here http://codepen.io/anon/pen/EKmXMR and I would like it to stick at the bottom of the page when the content is not enough and if the content take more than 100% height of the screen, I would like it to be at the bottom of the…
user5988063
-1
votes
1 answer

How to remove Bootstrap 3 class row bottom white border

how can I do this? Here is the page what I`m creating http://investbitcoins.tk/login/en After that I added sticky footer on the page which does not have enough height from the the content. Under the row class appeared white line This is an…
-1
votes
1 answer

Sticky Footer Not Working when Header is Fixed and Main has Top Margin?

Please paste the HTML below into your browser (using your browser's console - preferably Chrome) to see the problem I'm having. Prerequisites : A fixed header at the top A main container of variable height with a top margin A footer that sticks to…
Kawd
  • 4,122
  • 10
  • 37
  • 68
-1
votes
4 answers

Footer at the bottom of the screen without position

This is my code I want to keep footer at bottom of the screen even if there is less content. and move it down if there is more content. After doing some research I got may solution using position this is one of the. However is some cases when the…
-1
votes
4 answers

How to correctly set the footer?

I tried many tutorials on the web, tried javascripts but nothing worked for my footer. I simply want it to stick to the bottom. If I fix it in a page where the content go below the screen the footer won't work in a page which have content within the…
THpubs
  • 7,804
  • 16
  • 68
  • 143
-1
votes
4 answers

Place transparent div-layer above another div-layer with 100% height (with sticky footer!)?

HTML:
Header

Content Page

Content Page

user1711384
  • 343
  • 1
  • 7
  • 24
-1
votes
3 answers

sticky footer css fix

I want the footer (with the adress and social icons) to be at the bottom of the page with NO extra after it (so no scroll down possible ) I also want it at the really bottom It is working perfectly on this page Working link But when the content is…
francoboy7
  • 303
  • 3
  • 13
-1
votes
4 answers

Stick a footer to the bottom of the page

How do I make a footer which will stick to the bottom of the page and that will move with my content? I tried using position, but when there was more content than would fit on the screen, the footer stayed at the bottom of the screen, with content…
Hari Krishnan
  • 813
  • 2
  • 9
  • 14
-1
votes
2 answers

Sticking my footer to the bottom of the page

My footer doesn't want to stick to the bottom of the page. I'm new to HTML and I cant get it to go down. Here's my code:
user2277747
  • 89
  • 2
  • 2
  • 6