On 4/8/07, AJ <[EMAIL PROTECTED]> wrote:
At first my logic was: If the large image scales down 10%, why can't I
just reduce my x and y coordinates (or rather the  'top' and 'left'
css attributes) on the marker 10%? Doesn't seem to work. Maybe that
theory is correct and my math is just wrong. (BTW, the marker image is
a 20x20 square).

You have to translate that 10% to effects on the x and y axis.
So if your marker is at 40% of the width of the image, it remains
there. Same for the height.

Your image is 800 by 600. The marker is at 200 (25%), 300 (50%).
You resize to 640 by 480. The marker should be at 160 (25%), 240 (50%).

Reply via email to