Jump to content

साचा:Writing-mode/doc

विकिपीडिया, मुक्‍त ज्ञानकोशातून

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.

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
  • <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.