I was searching for a technique to make an element on my html page staying at the same place even if we scroll the page.
I found 2 methods :
This one and this one.
What is the difference between these two techniques ? (apart from how it's coded)
Also, I have a problem with these methods : when we scroll down, it stay at the same place - that's nice - but the rest of the page goes in front of my sticky element and not behind, like it does on the two methods I mentioned before.
Have anyone an answer to my to questions ?
Thank you in advance,
PS: Sorry for my english, I'm french :s