Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Fix footer at the bottom of the page, underneath existing content

Featured Replies

Hi,

I need to get a footer to stick to the bottom of the page, but so that it doesn't overlay.

 

This website is the one I'm talking about.

 

The DIV `Bottom` needs to sit below at the bottom of the page, below the existing content. But it has to stick at the bottom of the page, and not overlay the content above it.

 

Trying using

Position: fixed; 
Bottom: 0px;

 

This sticks it at the bottom of the page, but it overlays any content that is there.

 

Cheers.

  • Author

Basically..

 

I want the footer to stay at the bottom of the page. If there is content/text ect.. then it goes underneath that.

But if there is not, then it goes right at the bottom of the page.

 

If you zoom out / view it on a larger screen, then it'll stick to the base of the page.

 

I'm sure it's possible, but its a right pain at the moment. Not really got my WebDev hat on at the moment.

 

Would greatly appreciate any help with this.

There are two types of sticky footer, the position: fixed type which you don't want and this type:-

http://ryanfait.com/sticky-footer/

and

http://www.cssstickyfooter.com/

which only sticks to the bottom if there isn't enough content to fill the page height, if there is enough, it stays below the content.

 

Both work the same way although the code may be slightly different.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.