View Full Version : Making an element stay in fixed position when scrolling (Javascript/jQuery)

10 Sep 2011, 03:35 AM
Hi guys

I want to set 2 elements to stay on their position when I scroll. Example would be like this one, http://static.jqueryfordesigners.com/demo/fixedfloat.html

But that one would not work on my Android. Is there a way to make this work on mobile browsers? I would appreciate if someone could direct me to a jQuery plugin or a tutorial for this.


13 Sep 2011, 02:45 PM
This is not really a jQuery issue but rather CSS. Simply set the element's position to fixed.