Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Sticky title doesn't stick

Sticky title doesn't stick

Scheduled Pinned Locked Moved Bug Reports
titletextpositionsticky
4 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    fabiofrl
    wrote on last edited by fabiofrl
    #1

    Hi everyone!

    I'm trying to make a title sticking at the top of the browser after scrolling down.
    I don't want to use "position: fixed" because I'd like the title to scroll a little bit up from its original position.

    I've wrapped the text element in a custom id in the editor, and i'm using "position: sticky" in css, but the title is still scrolling out of the page. Also tried to do this just on the text element with the title, and on the entire row, but nothing works.

    Any suggestions?

    Thank you!
    F

    Edit: I'm using Chrome 68 on Mac, but I experienced the same problem on Safari and Firefox too.

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @fabiofrl
      I am not sure how much supported the sticky is.
      I also don't think that you can scroll with the sticky. As far as I understood it just pushes the content down and then stays on the top.

      Are you sure that you cannot sue the fixed thing?

      Best!

      Marius

      www.mariusjopen.world

      F 1 Reply Last reply
      0
      • mariusjopenM mariusjopen

        Dear @fabiofrl
        I am not sure how much supported the sticky is.
        I also don't think that you can scroll with the sticky. As far as I understood it just pushes the content down and then stays on the top.

        Are you sure that you cannot sue the fixed thing?

        Best!

        Marius

        F
        F
        fabiofrl
        wrote on last edited by
        #3

        Hi @mariusjopen
        thanks for the reply!

        I was looking for something like this (with no js needed), I've tried a couple of different solutions but nothing works.
        Btw I've already switched the layout to a different design, so this is not an issue anymore.

        Thanks again!
        F

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Hi @fabiofrl
          I would recommend the jQuery solution. very simple. Anyway… You don't need it anymore :-)

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better đź’—

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search