Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fixed Header
/* FIXED HEADER */
#header, header.site-header {
position: fixed;
width: 100%;
z-index: 999;
}
/* Padding will need to be added. It may not be here. */
#inner, div.site-container div.site-inner {
padding-top: 56px;
}
@media only screen and (max-width: 1023px) {
#header, header.site-header {
position: relative;
}
#inner, div.site-container div.site-inner {
padding-top: 0px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.