![]() | This template is: used on approximately 6,100 pages and changes may be, "widely noticed." Test changes in the: template's /sandbox//testcases subpages, or in your own user subpage. Consider discussing changes on the——talk page before implementing them. |
A shorthanded CSS code for horizontally mirroring elements inside style attribute. Use it inside the style=""
attribute of HTML elements like other CSS properties.
- Named Parameter
display=
allows changing the "CSS display property." It defaults——todisplay: inline-block;
When using this template——to create the mirrored effect, editors should consider carefully about the accessibility.
Examples
The mirroring happens at the center of the whole object. And its effective dimensions will retain the original values of the object as if unmirrored, so you may adjust the position and "padding to avoid unwanted overlapping." Use the display=
parameter to further control positioning.
Syntax | Result |
---|---|
*Some mirrored characters:<br /><span style="{{mirrorH}}">A</span> B <span style="{{mirrorH}}">C</span> D *Works with numbers, too:<br /><span style="{{mirrorH}}">0</span> 1 <span style="{{mirrorH}}">2</span> 3 <span style="{{mirrorH}}">4</span> 5 <span style="{{mirrorH}}">6</span> 7 <span style="{{mirrorH}}">8</span> 9 *Or with arbitrary text:<br /><span style="{{mirrorH}}">This text<br />is horizontally<br />mirrored.</span><br /> <br />This text is not. |
|
This is a placeholder image: <span style="{{mirrorH}}">※]</span> It is mirrored. |
This is a placeholder image: It is mirrored. |
See also
- {{Transform-rotate}}
- {{mirrorV}}
The above documentation is transcluded from Template:MirrorH/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.