Forum Discussion

TarundeepSinghTheta's avatar
TarundeepSinghTheta
Copper Contributor
Dec 13, 2018

In SPFX header/footer extensions, can I make footer scroll down along the main content of the page

I am using react SharePoint Framework Extensions to create my header and footer for the site. Right now the footer is fixed, as it will stay on the page even if you scroll down the content. As my footer have good number of links, so in this case it will consume some space on the screen and will not go away.

I want to make the footer scroll with the content, if the page have more data in it then the footer should be at the bottom after the main content.

 

Is this possible ? please suggest

    • TarundeepSinghTheta's avatar
      TarundeepSinghTheta
      Copper Contributor

      Thanks for that Thuyavan. That was helpful. :-) 

      I am not planing to make it a click open and close footer menu instead. Is there any other way I can achieve this.

      Thanks in advance. 

  • TarundeepSinghTheta Hi, Did u overcame this issue? I have a similar issue where Header and Footer created through SPFx occupies most of the page. Any luck with CSS or scrollable event?

    • Tarundeep's avatar
      Tarundeep
      Copper Contributor

      spfx-123_new1240 

      Hi,

      The footer in SPFX extension have fixed positioning so its not possible for now to make if scroll able.

      If you want it to be scroll able then you can add it in a web part and always keep that one the last web part on the page. But before that you need to hide all elements of the actual footer. 
      The other way around which I can think is to create a SPFX extension but make the footer hidden when user scrolls down. It might be tricky to manage the CSS.

       

      Regards,

      • priyanka2110's avatar
        priyanka2110
        Copper Contributor

        Tarundeep 

         

        Hi,

         

        I want to make the footer availiable inside the scroll bar, did anybody find any solution to this?

        Please let me know

Resources