[Resolved] scrolling of sections

Home Forums Support [Resolved] scrolling of sections

Home Forums Support scrolling of sections

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #106520
    Michael

    Is it possible to keep sections from scrolling?
    I would like the header section/navigation bar and the footer to stay on the screen and not move when scrolling, so that only the content of the sections between header and footer sections would move/scroll. would this be possible?

    #106598
    Tom
    Lead Developer
    Lead Developer

    For sure.

    To make the header/nav section sticky, check out this thread: http://generatepress.com/forums/topic/keep-menus-visable-with-scroll/#post-54453

    To make the footer sticky, you can use this CSS:

    .site-info {
          position: fixed;
          width: 100%;
          bottom: 0;
    }

    Let me know if that works or not 🙂

    #106615
    Michael

    thank you! i will try that out .. thanks for your quick support.
    can i also make a section sticky when (using sections plugin) i have more than one sections on a page?

    #106627
    Michael

    this might be a stupid question but i am only a beginner with wordpress and all this.. could i integrate the css “position: fixed;” directly in the html code of a section/page?

    #106628
    Tom
    Lead Developer
    Lead Developer

    You can give your sections a custom class, for example: custom-section-class

    Then give that class the position:fixed attribute:

    .custom-section-class {
          position: fixed;
          width: 100%;
          bottom: 0;
    }

    Will need some tweaking depending on how you’re using it 🙂

    #106632
    Michael

    thanks! your support is awesome!

    #106633
    Tom
    Lead Developer
    Lead Developer

    Happy to help! 🙂

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