Template:Transform-rotate/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> A shorthanded CSS code for rotating elements inside style..."
 
No edit summary
 
Line 1:
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
A shorthanded [[Wikipedia:Cascading style sheet|CSS]] code for rotating elements inside style attribute. Use it inside the <code>style=""</code> attribute of HTML elements like other CSS properties.
 
*First unnamed parameter <code>{{{1}}}</code> for rotation angle (in degree). Positive values rotate right, negative values rotate left.
*The named parameter {{para|display}} allows you to change the CSS display property. It defaults to <code>display: inline-block;</code>
 
When using this template to create the rotating effect, editors should consider carefully about the [[Wikipedia:WP:accessibility|accessibility]].
 
''{{A note}} 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 [[Wikipedia:Lua|Lua]].''
Line 74:
[[Category:Graphics templates]]
 
[[ru:Шаблон:Rotate]]
[[zh:Template:Rotate]]
}}</includeonly>