Rotating images with CSS and putting them back in place
Posted
by fuenfundachtzig
on Stack Overflow
See other posts from Stack Overflow
or by fuenfundachtzig
Published on 2010-04-22T15:22:34Z
Indexed on
2010/04/22
15:23 UTC
Read the original article
Hit count: 273
When I rotate a large image with CSS
-moz-transform: rotate(270deg);
which sits in a floating div (using Firefox 3.6.3 to display the page), it messes up the page layout: Apparently, the size of the image is evaluated before it has been rotated.
Furthermore, the image is displaced, partly being out of the screen, because the point it is rotated about is fixed. How can I improve this? (-moz-transform-origin
doesn't help here.)
© Stack Overflow or respective owner