Set the position to fixed on element? anyone?


#1

I would like to set the position to fixed on an icon for phone and email to float on the right side as the screen scrolls. Anyone know how to do this?


#2

+1 to this @Norm :slight_smile:


#3

If I understand what you’re saying, your asking for sticky not fixed position. You want it to behave like the sticky navigation?
There is a relatively new CSS position:

position:sticky;

Right now it’s support is at around 75% of browsers, so you probably would need a Polyfills in JavaScript.


#4

TY teefers