Ok, first a little explanation of concept and rules:
Let's say we have a container and an image. Now if we define a percentage, the percentage of the image is aligned to the percentage of the container.
So let's only consider width: If we say the percentage is 25%, then 25% width point of the container will be aligned to the 25% width point of the image.
The yellow is image and the black is container. I hope the concept makes sense to you.
Now let's say we know the width of container is 100px, and the width of image is 400px. I want to calculate a percentage such that, when applied with the rule above, the center of the image will always be aligned to the 130% width point
of the container (so in this case, is the 130px width point.)
Something like this:

The reason I use 130% is because the size is dynamically determined, so there is no known size, but I do know that the image will always be in proportion to the container, and what the proportion will be.
So, the problem is I want to align 50% of image to 130% of container, but the rule states you can only align 50% to 50%, 60% to 60%, and such. So i need to find a percentage that is the same for both image and container and would result in the picture above.
What would be the formula I could use?
