Sticky element using CSS?

  • Profile Image
    ITAParts
    Asked on January 20, 2018 at 11:48 AM

    Good morning,

    I am attempting to get a particular field to stay at a fixed point on the screen when scrolling and I haven't had a lot of luck.  

    I've tried sticky positioning and fixed positioning and neither seem to have an effect on the element.  

    I'm including a screenshot of what I've tried so far and I'm hoping someone might be able to point me in the right direction?  


  • Profile Image
    VictoriaKondratenko
    Answered on January 20, 2018 at 12:33 PM

    Please try the following code:

    #id_59 {

      position: fixed !important;

      z-index: 999;

    }

     

    This code results:

    1516469511post3.gif

    There is a hint How-to-Inject-Custom-CSS-Codes.

  • Profile Image
    ITAParts
    Answered on January 22, 2018 at 12:53 PM

    That did it!  Thank you!!