CSS Sticky Mystery

Hey There,

I hope you are well? I should point out I am not a coder at all - but i do know enough to be no bother whatsoever.

I am trying to implement a Sticky element in my site which I have made with Adobe Muse (it is outdated, I know...).

The CSS seems pretty straightforward and I did have something working in the past (I am also trying to find the old file) - with the caveat that it got pushed off by another element - even with the z-index high. I am trying again and am trying to remember the magic line of code that got it working in that instance.

Here is what I have:

.CloseSticky { position: -webkit-sticky !important; position: sticky !important; top: 140px !important; }

The !important tags are needed since it's Muse. I think.

It seems to me that a sticky element should be very simple to implement however that doesn't seem to be the case here! As I said there was something I entered which worked - I can't remember what that was so would anybody be kind enough to point me in the right direction.

I have a feeling I asked this here in the past but I can't find the entry - will keep looking.

Cheers,

R
Was this page helpful?