Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

murtaugh/sticky-pagination-fixer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 23, 2014 15:00
June 14, 2022 20:05
January 23, 2014 15:17
February 20, 2014 21:41

The Sticky Pagination Fixer Has Been Archived

Why?

It uses javascript to do a job that can now be handled purely through CSS.

How?

Like this:

html {
	scroll-padding-top: foo; /* set this to a value that matches the height of your sticky header */
}

This is supported by all modern browsers, with the exception of IE11, which (at the time of this writing) is about to hit its end of life,

About

Does your site have a sticky header? You should use this script to fix keyboard-based pagination events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published