Sorry if this is a bit confusing but I will try to explain. To sum up I would like to have an image behave according to only a small part of the image.
For example, imagine an image of the solar system, it is 1000px width and 1000px height. The sun being a part of the image located 150 pixels from top and 150 pixels from left and having the shape of a square of 250 pixels.
I would like the sun part of the image occupy a full div with Something like :
img { width: 100% }
Though if I do this the full image of the solar system is fully embedded in the div. And it is not centered around the sun.
To achieve what I want I have to do something like :
img {
position: absolute;
width: 400%;
top: some pixel value;
left: some pixel value;
}
But this is headache when the original DIV where the image resides is not fixed.
So I was wondering if something existed that allows to set the image top left value and bottom right value, and having the rest of the image overflow and adjust just the same way as the portion of the image that is set with boundaries.