Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect already positioned elements #6

Open
rossfishkind opened this issue Jul 13, 2010 · 2 comments
Open

Respect already positioned elements #6

rossfishkind opened this issue Jul 13, 2010 · 2 comments

Comments

@rossfishkind
Copy link

I found an issue where if you have an element that is already absolutely positioned (in IE), upon rotation, the element will be re-positioned to top: 0, left: 0. Is there any solution for this that people know of? Thanks.

@heygrady
Copy link
Owner

Wrap the element in another div and position that element. The transform-origin of elements in IE is faked using relative positioning to make it appear the same as it does in other browsers.

<div class="wrapper"><div class="transform">Transform me</div></div>
<style>.wrapper{position: absolute; left: 100px;}</style>
<script>$('.transform').transform({rotate: '45deg'});</script>

@noxsulivan
Copy link

in IE8, the element (img) don't rotates, but moves clipped inside that wrapper, what can i do about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants