css3 3d transformation card flip, padding/margin/border will cause the rotation origin to mess up, how to get around this?
http://jsfiddle.net/nicktheandroid/yWKMD/ Look at the example, when you click the element, it rotates around from the front to the back , the problem is that it's not rotating around it's center, it's like it's off balance, hold your mouse at the left border of the front side, click the element, and see how the back side's position is now off. They should be positioned in exactly the same spot. I noticed that when I removed the padding/margin/border, it would rotate fine, but I need to have the padding and border on there. Is there a way to do this with padding and a border - so that it will