When I alert the value .position().left, it returns 0 on Chrome. With other browsers it returns the actual number. Why does this happen?
.position().left
use jQuery(window).load() instead of jQuery(document).ready()