I have a simple div tag absolutely positioned in an HTML document. When in Chrome I set my “correct” CSS rule to a fixed value in pixels and its “left” rule to “automatically” and then immediately determine its left position using the jquery position () method, the return value is something like this view: 122.6363525390625 . The same goes for the offset () method.
Firefox, on the other hand, does not have this problem.
Can you tell me why this is happening and is there a way to prevent this? Thanks in advance!
jquery css google-chrome
Andrei Oniga
source share