S
Stevo
If I'm trying to position a DIV using a calculation (e.g. newpos=x/2,
should I be converting the number to an integer?
There are of course no physical half-pixels on the screen, so if I were
to set the .style.left property of a DIV to "13.5px" then it's up to the
browser how it treats that. It might round down, round up, or do some
anti-aliasing to make it look like it's positioned at 13.5px.
What's the general recommendation for the pixel values being set to
..style.left and .style.top ?
should I be converting the number to an integer?
There are of course no physical half-pixels on the screen, so if I were
to set the .style.left property of a DIV to "13.5px" then it's up to the
browser how it treats that. It might round down, round up, or do some
anti-aliasing to make it look like it's positioned at 13.5px.
What's the general recommendation for the pixel values being set to
..style.left and .style.top ?