Socket
Book a DemoInstallSign in
Socket

stickyfooter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stickyfooter

A modern easy to use sticky footer mixin with minimal HTML requirements.

1.1.3
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

A modern easy to use sticky footer mixin with minimal HTML requirements.

Example: zampage.github.io/stickyfooter/

Install with Node: npm install --save stickyfooter

Usage

stickyFooter([string:contentSelector, string:footerSelector])

SCSS

parent{
  @include stickyFooter(); //takes 1. child as content and 2. child as footer
  @include stickyFooter('content'); //takes your selector as content and 2. child as footer
  @include stickyFooter('content', 'footer'); //takes your selectors content and footer
}

HTML

<parent>
    <content></content>
    <footer></footer>
</parent>

Notice

  • if applied on body the margin needs to be resetted
  • you should use box-sizing: border-box; on all elements

Browser Support

  • Chrome >= 28
  • Firefox >= 28
  • MS Edge - all versions
  • Safari >= 9
  • Opera >= 12.1
  • IE - not supported

Sticky footer will automatically be ignored completely on IE. If you want to use a fallback just for IE this is the way to go:

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  //some sort of fallback
  //which is not executed in other browsers
}

FAQs

Package last updated on 31 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.