I tried several other codes mentioned here on stackoverflow, all work in specific positions and specific distances. I tried to use the MAP> AREA tag, but the plugins found can not keep resizing, leaving the point completely out of the picture.
Need to position an element over an image in a specific point. Other words, the image will reduce when I resize the browser and the point must be kept exactly where he is.
Look at the example of three images:
1 - Image FULL and point in the correct place;
2 - Medium image. Here has begun to lose;
3 - Not much smaller image. Here now very out;
I am currently using this code:
$('.btParede').css("top", ( $('.imageBox').offset().top + 200 ) + "px");
$('.btParede').css("left", ( $('.imageBox').offset().left + $('.imageBox').width() - 400 ) + "px");
There is a more specific position relative to another element when it is resized without losing the specific point?
Thanks
**** I forgot to mentioned this ****
I use "fitToParent" jQuery resize to aspect ratio to scale and reload and maintain aspect ratio of the image inside the document
Here is another example http://jsfiddle.net/Tyriar/ypb5P/1/ that works fine when resize, but when reload, mess it up.. Anyone experienced this? Works one way and not another?
Thanks again!