Last active
December 17, 2015 11:19
-
-
Save iammilton82/5601454 to your computer and use it in GitHub Desktop.
Fixed scrolling navigation
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
/* CSS */ | |
body { padding-top:80px; } /* be sure the padding is fron the top of the page to the top of your content */ | |
#header { position: absolute; height:50px; width: 100%; top:20px; left:0; right:0; } | |
#header.fixed { position: fixed; top:0; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment