Using CSS3, HTML (and javascript / jquery if necessary), I need to rotate the image 90/270 degrees and have its position to fill the parent div / container. It sounds simple, but when the images rotate, the changes in position change, and I cannot understand how and why.
Here is the jsFiddle explanation - http://jsfiddle.net/UPGkU/2/ - I just want the blue logo to be exactly in the red div.
Of course, I could use specific offsets, but if a different image is used, these offsets change, so I really want to find a common solution.
Any help would be fantastic, thanks!
source share