Grow your CSS skills. Land your dream job.

Menu become Fix header on scroll

  • # June 16, 2013 at 2:04 am

    >If you want me to click on your website link, am not going to do that.

    Why? You ask us to click your links.

    If it had been a spam link one of us mods would have removed it.

    # June 16, 2013 at 5:18 am

    > If you want me to click on your website link, am not going to do that.

    Then I guess you should stop asking for help.

    On topic, my first answer was correct ; it is a `position: sticky` thing. A simple Google search from the OP would have led him where he wanted to go.

    # June 16, 2013 at 5:20 am

    I dont like it when one can simply fork a codepen, he will be directing people his website for traffic purposes.

    # June 16, 2013 at 5:21 am

    Who cares if it gives you the answer you’re looking for? It’s a win-win.

    # March 9, 2014 at 11:55 am

    Position: sticky; Is only webkit and will not work across all browsers so it isn’t really a useful option quite yet.

    I dont like it when one can simply fork a codepen, he will be directing people his website for traffic purposes.

    As long as it has what you are looking for I don’t see the problem. After all, it’s a free resource so we can’t be picky.

    @Senff‘s codepen was the best answer from this topic, because he added / removed classes based on the scroll position which is faster than inline styles.

Viewing 5 posts - 16 through 20 (of 20 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".