removes floats from pixels for cross-browser support