How can I set a rotation point for an element in CSS?
This will set the rotation pivot point on top-left corner of your element and rotate it:
transform: rotate(-25deg);
transform-origin: 0% 0%;
take a glance at .nav_item_txt
class:
http://jsfiddle.net/KHkX7/
Use the transform-origin CSS property:
.class {
transform-origin: 0 0;
}
Try using the transform-origin property instead, rotation-point isn't supported...
For rotating on the top right point of an element (including all targeting):
-webkit-transform-origin: 100% 0;
-moz-transform-origin: 100% 0;
-ms-transform-origin: 100% 0;
-o-transform-origin: 100% 0;
transform-origin: 100% 0;