Template:Transform-rotate/doc

A shorthanded CSS code for rotating elements inside style attribute. Use it inside the  attribute of HTML elements like other CSS properties.


 * First unnamed parameter  for rotation angle (in degree). Positive values rotate right, negative values rotate left.
 * The named parameter display allows you to change the CSS display property. It defaults to

When using this template to create the rotating effect, editors should consider carefully about the accessibility.

'' This template does not support IE8 or older. IE8 requires cumbersome calculating of matrices. You may implement it into this template if you know how to translate the formula into Lua.''

Examples
The rotating happens at the center of the object and its effective dimensions will retain the original values of the object as if unrotated, so you may adjust the position and padding to avoid unwanted overlapping. Use the  parameter to further control positioning.

Serious bug:

See also:

 * MirrorH
 * transform