THE GITHTML FIELD GUIDE

Prepare vertical text without rotating the whole page

Use writing-mode for genuine vertical text instead of rotating a horizontal page with a transform. Keep mixed scripts, punctuation, and the reading direction intentional. A vertical passage changes how space and overflow behave, so test its navigation and provide a horizontal explanation when the intended readers may be unfamiliar with the format.

Choose the right representation

Rotation changes appearance without providing the same layout behavior as a writing mode. That distinction matters when Japanese text, Latin abbreviations, and numbers share a passage. A decorative rotated heading should not dictate the structure of an entire technical report.

Apply the pattern deliberately

Apply vertical writing only where it serves the content. Use logical dimensions when setting the passage's size, and avoid treating width as the reading-line length in every orientation. Keep adjacent explanatory material in a predictable order.

  1. Identify which passages require vertical writing and leave unrelated explanatory text unaffected.
  2. Use real mixed-language content rather than repeated characters for the layout test.
  3. Inspect text selection and scrolling in the final reading environment, not only a screenshot.
css
.vertical-passage { writing-mode: vertical-rl; max-inline-size: 28rem; }

Check the direction of the content, not just its rotation

In vertical-rl, inline text flows vertically and the sequence of lines advances toward the left. That is different from drawing a horizontal paragraph and rotating the finished box. Choose the mode to match the language and publication convention, not to imitate a poster. A technical manual containing only one short vertical quotation should usually scope the writing mode to that quotation, leaving the navigation and explanatory material in their established orientation.

Physical width and height become easy to misuse when an author copies horizontal-layout CSS. A maximum inline size constrains the inline direction, which is vertical in the example. Review fixed dimensions, overflow rules, borders, and captions together. A container that is visually narrow may still have a long reading line in the other direction. Test enough text to create another line so you can verify the continuation rather than examining only the first neat column.

Use examples containing the actual punctuation and mixed-script tokens your audience sees. Latin product names, version numbers, and dates can behave differently from the surrounding characters, and an aesthetically pleasing orientation may not be the correct convention. Ask a fluent reader to review the passage and check selection and copying for meaningful order. If the same document has a horizontal export, review that output separately. A transform that makes one screenshot look right is not evidence that either reading format is usable.

Check the finished reading experience

Test a passage containing punctuation, a date, and a Latin product name. Check where the next column begins and whether the reader can reach the final characters without an unexpected clipping boundary.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All reading html on your phone guides →

Read as MarkdownAll guides

Prepare vertical text without rotating the whole page · gitHtml