Jump to content

Template:MirrorV/doc

From Simple English Wikipedia, the free encyclopedia

A shorthanded CSS code for vertically mirroring elements inside style attribute. Use it inside the style="" attribute of HTML elements like other CSS properties.

  • Named Parameter display= allows to change the CSS display property. It defaults to display: inline-block;

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

Examples[change]

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
<syntaxhighlight lang="html">*Some mirrored characters:
A B C D</syntaxhighlight>

<syntaxhighlight lang="html">*Works with numbers, too:
0 1 2 3 4 5 6 7 8 9</syntaxhighlight>

<syntaxhighlight lang="html">*Or with arbitrary text:
This text
is vertically
mirrored.

 
This text is not.</syntaxhighlight>

  • Some mirrored characters:
    A B C D
  • Works with numbers, too:
    0 1 2 3 4 5 6 7 8 9
  • Or with arbitrary text:
    This text
    is vertically
    mirrored.

     
    This text is not.
<syntaxhighlight lang="html">This is a placeholder image:</syntaxhighlight> <syntaxhighlight lang="html"></syntaxhighlight>

<syntaxhighlight lang="html">It is mirrored.</syntaxhighlight>

This is a placeholder image:

It is mirrored.

See also:[change]