sticky header scroll padding top

    0

    1

    lonesgithub

    The above code adjusts the scroll-padding-top property of the HTML element to set the sticky header height at 70px.

    html {
      scroll-padding-top: 70px; /* height of sticky header */
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.