Template:Writing-mode/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{Mbox | type=notice | text = CSS Writing Mode property is currently support..." |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
||
{{Mbox | type=notice | text = CSS Writing Mode property is currently supported only by newer versions of [[Gecko (layout engine)|Gecko]]-based browsers (such as [[Mozilla Firefox]]), [[WebKit]]-based browsers (such as [[Google Chrome]] and [[Safari (web browser)|Safari]]) and [[Microsoft Edge]]. '''All versions of [[Internet Explorer]] through to version 8 and [[Opera (web browser)|Opera]] prior to version 15.0 do not support it.''' See [[Template:MongolUnicode#Issues|here]] for more information.}} |
{{Mbox | type=notice | text = CSS Writing Mode property is currently supported only by newer versions of [[Wikipedia:Gecko (layout engine)|Gecko]]-based browsers (such as [[Wikipedia:Mozilla Firefox|Mozilla Firefox]]), [[Wikipedia:WebKit|WebKit]]-based browsers (such as [[Wikipedia:Google Chrome|Google Chrome]] and [[Wikipedia:Safari (web browser)|Safari]]) and [[Wikipedia:Microsoft Edge|Microsoft Edge]]. '''All versions of [[Wikipedia:Internet Explorer|Internet Explorer]] through to version 8 and [[Wikipedia:Opera (web browser)|Opera]] prior to version 15.0 do not support it.''' See [[Template:MongolUnicode#Issues|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. |
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. |
||
Latest revision as of 20:52, 10 November 2020
| CSS Writing Mode property is currently supported only by newer versions of Gecko-based browsers (such as Mozilla Firefox), WebKit-based browsers (such as Google Chrome and Safari) and Microsoft 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.
Usage
Insert 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
Example
<div style="{{writing-mode|v1}}">Lorem ipsum...</div>will produce:
Lorem ipsum dolor sit amet, consectetur adipisicing 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 adipisicing 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.
See also