Global "Sticky" Footer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lesliekirk
    Super Moderator











    • Aug 2008
    • 9290

    #1

    Global "Sticky" Footer

    Is it possible to convert the Global "Sticky" Header (ReadyTheme Content Sections fasten_header) to a Global "Sticky" Footer?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest
  • lesliekirk
    Super Moderator











    • Aug 2008
    • 9290

    #2
    I think I have an answer to my own question - using CSS - I've changed the .x-fasten-header top: 0; to bottom: 0;

    Now to see how well that plays out. If I've missed anything, please let me know.

    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest

    Comment

    • RTHOMASDESIGN
      Mivite








      • Jun 2015
      • 296

      #3
      That'll work :)

      Will likely look better if you change "transform-origin" to bottom as well.

      Comment

      • Bruce - PhosphorMedia
        Developer Partner











        • Mar 2006
        • 11256

        #4
        Its relatively easier to do this anywhere you want. Just tag the element you want to stick with

        { postion: sticky }

        and make sure that's inside a parent container that defines the area in which you want the sticky element to exist. (For example, a footer container, or even say a product image container, whatever).

        next define its 'start' position using Top:0, Bottom:0, Left:0 and/or Right:0.

        When scrolling reaches the trigger point, it will remain its starting position.

        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment

        • RTHOMASDESIGN
          Mivite








          • Jun 2015
          • 296

          #5
          Yup "position:sticky" works great, but it isn't fully supported by some browsers (which is likely why Miva didn't use it). I often check CanIUse to ensure compatibility – https://caniuse.com/#search=sticky

          Comment

          • lesliekirk
            Super Moderator











            • Aug 2008
            • 9290

            #6
            Originally posted by RTHOMASDESIGN View Post
            Yup "position:sticky" works great, but it isn't fully supported by some browsers (which is likely why Miva didn't use it). I often check CanIUse to ensure compatibility – https://caniuse.com/#search=sticky
            Thanks - nice tip! I'll also go look for that "transform-origin" too. Along with doing multiple browser tests.
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: X | Facebook | Pinterest

            Comment

            Working...
            X