Fixed Global Header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Strat1979
    Mivite

    • Feb 2009
    • 118

    #1

    Fixed Global Header

    I am using the Suivant ReadyTheme.
    Is there a way to keep the global header fixed so that the page scrolls "behind" the header?
  • Matt Zimmermann
    Mega Mivite










    • Apr 2008
    • 2482

    #2
    By default, it should be doing that, http://suivant-theme.mivamerchantdev.com/. Can you send a link to the site in question?
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    • Strat1979
      Mivite

      • Feb 2009
      • 118

      #3
      Hi Matt,
      Thanks for responding.




      Yes, it behaves like the demo.
      If I comment out the "Stuck" command in the scripts file, it just scrolls up out of sight.
      What I am trying to do is to keep it fixed at all times instead of scrolling up to the top of the page, then jumping down and staying fixed at that point of the scroll.

      Comment

      • Matt Zimmermann
        Mega Mivite










        • Apr 2008
        • 2482

        #4
        The easiest way to do that would be to comment out the 'stuck' function in the scripts file and apply the 'stuck' class to the header element. You will then need to add a margin-top value to the 'main' element. This value will depend on the they height of your header element.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment

        • Strat1979
          Mivite

          • Feb 2009
          • 118

          #5
          Thank you very much Matt! That did the trick.

          Comment

          Working...
          X