Created
August 31, 2012 09:58
-
-
Save vinhnx/3551020 to your computer and use it in GitHub Desktop.
position: sticky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sticky { | |
position: -webkit-sticky; | |
position: -moz-sticky; | |
position: -o-sticky; | |
position: sticky; | |
/* optional, set top: 1em padding when user scroll down */ | |
top: 1em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment