Reputation: 13315
I have fixed an icon in the place using jQuery
$('#edit').css({left: 512});
When i make the browser size small or big the icon is not on the same place. It's moving according to that current browser size.
How can it be controlled using jQuery to place icon in the same place even the browser size changes.
Upvotes: 0
Views: 211
Reputation: 35842
Why not using CSS instead of jQuery? Simply use fixed positioning.
Upvotes: 2