Teamplaid:Writing-mode
CSS Writing Mode property is currently supported only by newer versions of Gecko-based browsers (such as Firefox), WebKit-based browsers (such as Chrome and Safari) and Edge. All versions of Internet Explorer through to version 8 and Opera prior to version 15.0 do not support it. See here for more information. |
This template is a shortcut for adding writing mode property using CSS. It generates the CSS for various browsers. Supported browsers are the current versions of Firefox, Safari, Chrome and Edge.
Ùsaid - Usage
deasaichInsert this template within a style tag of any block-style element:
{{writing-mode | [directionality]}}
The following value making the text vertically, but the direction of columns is different:
- v, v1, tbrl: apply right-to-left direction to colums
- v2, tblr: apply left-to-right direction to colums
The h
value making the text horizontally, maybe it also produce "Tate-chū-yoko" effect within vertical text:
The following value making the text just rotate to 90° in different direction:
- s1: clockwise
- s2: counter-clockwise
Eisimpleirean - Examples
deasaich<div style="{{writing-mode|v1}}">Lorem ipsum...</div>
will produce:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div style="{{writing-mode|v2}}">Lorem ipsum...</div>
will produce:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Faic cuideachd - Also see
The above documentation is transcluded from Teamplaid:Writing-mode/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |