Archived topic
Scroll 'Sider' header with main content
5 replies · Started by Ian on March 30, 2018
Using the 'Sider' template, I'd like the header/sidebar to scroll up and down alongside the main content in PC widescreen view. Is that possible? Thanks.
Give this a shot:
@media (min-width: 1000px) {
.site-header {
position: absolute;
top: 0;
left: 0;
bottom: 0;
}
#page,
.site-footer {
margin-left: 300px;
}
body {
position: relative;
margin-left: 0;
}
}
Let me know :)
Hmm, no luck; the content has moved 300px away from the header, and the header remains static. Not to worry; I'll try something else. Thanks!
Try adding it to the bottom of your custom CSS in "Customize > Additional CSS".
Perfect! I'd put it at the top. Above and beyond, Tom. Thank you!
You're welcome :)