Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk4 min

How to Use Vertical Text Orientation in CSS Across Browsers

Use writing-mode to control vertical flow and text-orientation to choose how characters display. Includes examples, browser-support guidance, and checks for scripts and layout.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use writing-mode to make text flow vertically, then choose text-orientation to control how characters sit within that vertical line. For the common right-to-left column layout, start with writing-mode: vertical-rl and text-orientation: mixed.

Separate vertical flow from character orientation

writing-mode determines whether lines flow horizontally or vertically and the direction of that flow. text-orientation controls character orientation within a line and only affects vertical typographic modes. The CSS Writing Modes Level 4 specification describes it as the property that “specifies the orientation of text within a line.” W3C CSS Writing Modes Level 4

As an Amazon Associate I earn from qualifying purchases.

For vertical columns progressing from right to left, use vertical-rl. For columns progressing from left to right, use vertical-lr. MDN: writing-mode

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a text-orientation value

These examples assume a vertical writing mode. Use the value that matches the scripts and typographic effect you need:

#1 Best Overall
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option
  • mixed is the initial value. It keeps characters with intrinsic vertical orientation upright and turns characters used only in horizontal scripts 90 degrees clockwise. It is a practical default for vertical text that mixes scripts.
  • upright keeps horizontal-script characters upright. It also has a bidi consequence: the used direction becomes ltr, and all characters are treated as strong LTR for bidirectional reordering.
  • sideways lays text out as horizontally and rotates it 90 degrees clockwise.

The W3C specification explains that most CJK characters have intrinsic vertical orientation. In mixed mode, Unicode vertical-orientation properties determine character orientation; punctuation placement and alternate glyphs can differ from horizontal composition. W3C CSS Writing Modes Level 4

Apply the common patterns

.vertical-copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.upright-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.rotated-run {
  writing-mode: vertical-rl;
  text-orientation: sideways;
}

Change vertical-rl to vertical-lr when columns should progress in the opposite direction. The properties control different aspects: changing text-orientation does not, by itself, turn horizontal text flow into vertical flow.

Account for layout and directionality

Vertical writing mode changes block flow and ordering, not just the appearance of individual glyphs. Recheck element dimensions, spacing, alignment, and assumptions based on physical horizontal and vertical axes. Prefer logical sizing and positioning properties where practical so the layout follows the writing mode.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For RTL or mixed-direction content, test the actual text with the chosen orientation. In particular, upright changes the used direction to LTR for bidi reordering, which can affect runs that otherwise rely on RTL behavior. A visual check should include punctuation, numbers, Latin text, and the scripts the page actually uses.

Rank #3
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers

Check browser support and plan a fallback

MDN marks text-orientation widely available since September 2020 and writing-mode widely available since March 2017, while noting that support for parts of writing-mode varies. Check the precise property value and versions required by your audience. MDN: text-orientation · MDN: writing-mode

Can I Use’s live table reported 96.2% global usage support for text-orientation at the time of the compatibility check; it listed current Chrome, Edge, Safari, and Firefox versions as supporting it, and IE 11 and Opera Mini as unsupported. This is a changing global estimate, not a guarantee for a particular audience or every value. Check the current table before setting a support policy. Can I Use: text-orientation support

For unsupported sideways-lr, MDN documents a transform-based workaround and warns that rotation can produce unexpected positioning or rendering. It notes that vertical-rl has the same effect as sideways-lr for left-to-right scripts; in some cases a 180-degree rotation may be enough. Verify glyph shape, dimensions, wrapping, and alignment in each target browser rather than assuming a transform is equivalent in every layout. MDN: writing-mode

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Verify the result in target browsers

  1. Choose the column progression: vertical-rl for right-to-left columns or vertical-lr for left-to-right columns.
  2. Choose character treatment: mixed orientation for script-sensitive upright and rotated glyphs, upright for keeping horizontal-script characters upright, or sideways for rotating the horizontal layout.
  3. Test representative content, including CJK characters, Latin runs, punctuation, numbers, and RTL or mixed-direction text if present.
  4. Check layout dimensions, wrapping, alignment, and punctuation rendering in the browsers and versions your site supports.
  5. If using an older browser fallback or a transform for sideways-lr, verify the transformed element’s positioning and glyph appearance separately.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your goal is to capture how a page renders, ScreenshotNeo can return a screenshot or PDF with one request. It accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server includes screenshot, page-info, and PDF tools for AI agents.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. ScreenshotNeo is a website screenshot API and MCP server from Yorker Media. Sign up for 1,000 free screenshots a month, with no card required.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.