[Resolved] Scroll 'Sider' header with main content

Home Forums Support [Resolved] Scroll 'Sider' header with main content

Home Forums Support Scroll 'Sider' header with main content

  • This topic has 5 replies, 2 voices, and was last updated 6 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #536623
    Ian

    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.

    #536775
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #536985
    Ian

    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!

    #537192
    Tom
    Lead Developer
    Lead Developer

    Try adding it to the bottom of your custom CSS in “Customize > Additional CSS”.

    #537263
    Ian

    Perfect! I’d put it at the top. Above and beyond, Tom. Thank you!

    #537512
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.