{"id":24249,"date":"2019-03-21T12:15:48","date_gmt":"2019-03-21T10:15:48","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=24249"},"modified":"2019-03-18T14:08:27","modified_gmt":"2019-03-18T12:08:27","slug":"vertical-text-orientation-nightmare-browser-compatibility","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/","title":{"rendered":"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility?"},"content":{"rendered":"\n<p>The necessity for vertical text-orientation might not seem evident at first and its use rather limited solely as a design aspect for web pages. However, many Asian languages like Mandarin or Japanese scripts can be written vertically, flowing from right to left or in case of Mongolian left to right. In such languages, even though the block-flow direction is sideways either left to right or right to left, letters or characters in a line flow vertically from top to bottom. Another common use of vertical text-orientation can be in table headers. This is where text-orientation property becomes indispensable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Text-Orientation<\/h2>\n\n\n\n<p>The method that we will focus upon in this blog is by the use of CSS text-orientation. <b>\u2018text-orientation\u2019<\/b> is a CSS property that defines the orientation of characters within a line. Remember that text orientation needs to be used in conjunction with the writing-mode property. It can only be used when writing-mode is set to vertical(either vertical-rl or vertical-lr). It will not work if writing mode is set to horizontal(horizontal-tb).<\/p>\n\n\n\n<p><b>Syntax:<\/b><\/p>\n\n\n\n<p><b>text-orientation:<\/b> mixed | upright | sideways;<\/p>\n\n\n\n<p>By default, text-orientation is set to mix.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Mixed: horizontal scripts will be rotated 90deg clockwise while vertical scripts remain unaffected.<\/li><li>Upright: all characters will remain in upright orientation even if block-flow is vertical<\/li><li>Sideways: All text(horizontal and vertical scripts) will be rotated sideways \u2013 90deg clockwise.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Browser Support<\/h3>\n\n\n\n<p>Head over to caniuse and search for \u2018CSS text-orientation\u2019 to get an in-depth insight into which browsers and specific browser version supports this feature.<\/p>\n\n\n\n<p><em>Cross browser compatibility of CSS text-orientation property \u2013 caniuse<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"512\" height=\"176\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/unnamed-5-1.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24258\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/unnamed-5-1.png 512w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/unnamed-5-1-300x103.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n\n\n<p>Remember that text-orientation in CSS3 is a relatively new feature and might undergo syntax changes and alterations in future. Although, it is supported by all the major browsers like Chrome, Firefox, Opera and Safari, the major exceptions are Microsoft Edge and Internet Explorer. It is prudent to use some kind of fallbacks for such unsupported browsers which will further ease our effort for <a href=\"https:\/\/www.lambdatest.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">cross browser testing<\/a>.<\/p>\n\n\n\n<p>You can also see CSS text-orientation in action as you head to <a href=\"https:\/\/www.lambdatest.com\/blog\/performing-cross-browser-testing-with-lambdatest\/\" target=\"_blank\" rel=\"noopener noreferrer\">performing cross browser testing<\/a> for acknowledging the browser support for vertical text-orientation on <a href=\"https:\/\/www.lambdatest.com\/experiment\/css-text-orientation.html\" target=\"_blank\" rel=\"noopener noreferrer\">LambdaTest Experiments<\/a>. Not only does it displays a live example for this feature with code but also the list of all the major browsers which support and do not support the particular feature, it can also detect user\u2019s current browser and operating system.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image9-2-1024x516.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24259\" width=\"768\" height=\"387\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image9-2-1024x516.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image9-2-300x151.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image9-2-768x387.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image9-2.png 1600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>Before using text-orientation, we need to first look into the writing-mode property and understand the concepts of block-flow and inline-flow direction.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Writing Mode<\/h3>\n\n\n\n<p><b>\u2018writing-mode\u2019<\/b> property specifies if lines are set to horizontal or vertical text-orientation. Also, the direction in the text block progresses \u2013 left to right or right to left. Writing Mode can have 3 values \u2013 horizontal-tb, vertical-lr or vertical-rl.<\/p>\n\n\n\n<p><b>writing-mode:<\/b> horizontal-tb | vertical-rl | vertical-lr;<\/p>\n\n\n\n<p><b>Note:<\/b> There are 2 more experimental values which should not be used in production code.\u2013 \u2018sideways-rl\u2019 or \u2018sideways-lr\u2019. Also, old values like lr, lr-tb, tb, tb-rl, rl have been deprecated.<\/p>\n\n\n\n<p>Writing-mode introduces 2 key concepts-<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><b>Block flow Direction:<\/b> Specifies the direction in which block-level boxes are stacked inside a container. It can either be top to bottom, left to right or right to left.<\/li><li><b>Inline Flow Direction:<\/b> Specifies the direction in which content flows inside the line of text, and where a new line starts. It can either be horizontal or vertical.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-17-1024x492.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24260\" width=\"768\" height=\"369\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-17-1024x492.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-17-300x144.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-17-768x369.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-17.png 1078w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"602\" height=\"324\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-18.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24261\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-18.png 602w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-18-300x160.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure><\/div>\n\n\n\n<p>To achieve a vertical text orientation, set the writing mode property to vertical-lr(or vertical-rl) and set text-orientation to upright.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"512\" height=\"399\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/unnamed-6.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24262\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/unnamed-6.png 512w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/unnamed-6-300x234.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Wondering About LambdaTest?<\/h3>\n\n\n\n<p>LambdaTest is a cross browser testing cloud which helps you to perform <a href=\"https:\/\/www.lambdatest.com\/feature\" target=\"_blank\" rel=\"noopener noreferrer\">browser compatibility testing<\/a> in an effortless manner on over 2000+ browsers and browser versions. You can perform <a href=\"https:\/\/www.lambdatest.com\/blog\/34-ways-to-save-time-on-manual-cross-browser-testing\/\" target=\"_blank\" rel=\"noopener noreferrer\">manual cross browser testing<\/a> by directly interacting with real browsers through a VM hosted on their cloud servers. You could also perform automated <a href=\"https:\/\/www.lambdatest.com\/selenium-automation\" target=\"_blank\" rel=\"noopener noreferrer\">cross browser testing<\/a> using their Online Selenium Grid through a test automation framework of your choice.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"647\" height=\"207\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Download-Whitepaper.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24263\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Download-Whitepaper.png 647w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Download-Whitepaper-300x96.png 300w\" sizes=\"(max-width: 647px) 100vw, 647px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Creating Vertical Text With \u201ctext-orientation\u201d Property<\/h3>\n\n\n\n<p>To create vertically oriented text, you need to set text-orientation in CSS to upright along with <b>writing -mode<\/b> set to <b>vertical-lr<\/b>. As we discussed earlier, CSS text-orientation will only function if the writing-mode property is set to vertical <b>(either vertical-rl or vertical-lr)<\/b> and not horizontal (horizontal-tb).<\/p>\n\n\n\n<div>\n<div id=\"highlighter_734250\" class=\"syntaxhighlighter  perl\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">01<\/div>\n<div class=\"line number2 index1 alt1\">02<\/div>\n<div class=\"line number3 index2 alt2\">03<\/div>\n<div class=\"line number4 index3 alt1\">04<\/div>\n<div class=\"line number5 index4 alt2\">05<\/div>\n<div class=\"line number6 index5 alt1\">06<\/div>\n<div class=\"line number7 index6 alt2\">07<\/div>\n<div class=\"line number8 index7 alt1\">08<\/div>\n<div class=\"line number9 index8 alt2\">09<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<div class=\"line number17 index16 alt2\">17<\/div>\n<div class=\"line number18 index17 alt1\">18<\/div>\n<div class=\"line number19 index18 alt2\">19<\/div>\n<div class=\"line number20 index19 alt1\">20<\/div>\n<div class=\"line number21 index20 alt2\">21<\/div>\n<div class=\"line number22 index21 alt1\">22<\/div>\n<div class=\"line number23 index22 alt2\">23<\/div>\n<div class=\"line number24 index23 alt1\">24<\/div>\n<div class=\"line number25 index24 alt2\">25<\/div>\n<div class=\"line number26 index25 alt1\">26<\/div>\n<div class=\"line number27 index26 alt2\">27<\/div>\n<div class=\"line number28 index27 alt1\">28<\/div>\n<div class=\"line number29 index28 alt2\">29<\/div>\n<div class=\"line number30 index29 alt1\">30<\/div>\n<div class=\"line number31 index30 alt2\">31<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"perl plain\">&lt;!DOCTYPE html&gt;<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"perl plain\">&lt;html lang=<\/code><code class=\"perl string\">\"en\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"perl plain\">&lt;head&gt;<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta charset=<\/code><code class=\"perl string\">\"utf-8\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta http-equiv=<\/code><code class=\"perl string\">\"X-UA-Compatible\"<\/code> <code class=\"perl plain\">content=<\/code><code class=\"perl string\">\"IE=edge\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta name=<\/code><code class=\"perl string\">\"viewport\"<\/code> <code class=\"perl plain\">content=<\/code><code class=\"perl string\">\"width=device-width, initial-scale=1\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;title&gt;Vertical oriented text&lt;\/title&gt;<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;style&gt;<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">.vertical-text {<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">writing-mode: vertical-lr;<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">text-orientation: upright;<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">background-color:red;<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl variable\">@supports<\/code><code class=\"perl plain\">(text-orientation:upright){<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">.vertical-text{<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">background-color: greenyellow;<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number20 index19 alt1\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number21 index20 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/style&gt;<\/code><\/div>\n<div class=\"line number22 index21 alt1\"><code class=\"perl plain\">&lt;\/head&gt;<\/code><\/div>\n<div class=\"line number23 index22 alt2\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number24 index23 alt1\"><code class=\"perl plain\">&lt;body&gt;<\/code><\/div>\n<div class=\"line number25 index24 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;h1&gt;CSS text-orientation property is supported by Google Chrome, Firefox, Opera and Safari&lt;\/h1&gt;<\/code><\/div>\n<div class=\"line number26 index25 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span class=<\/code><code class=\"perl string\">\"vertical-text\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number27 index26 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">Vertical Text using text-orientation<\/code><\/div>\n<div class=\"line number28 index27 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/span&gt;<\/code><\/div>\n<div class=\"line number29 index28 alt2\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number30 index29 alt1\"><code class=\"perl plain\">&lt;\/body&gt;<\/code><\/div>\n<div class=\"line number31 index30 alt2\"><code class=\"perl plain\">&lt;\/html&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n\n\n\n<p>We can utilise LambdaTest as a cross browser testing tool to interact with your website live using their real-time testing feature. Real time testing would present your website on a VM hosted by LambdaTest cloud servers. You can also <a href=\"https:\/\/www.lambdatest.com\/blog\/10-must-try-features-of-automated-screenshot-testing-on-lambdatest\/\" target=\"_blank\" rel=\"noopener noreferrer\">perform automated screenshot testing<\/a> to capture multiple screenshots in one go of our webpage across different desktop and mobile browsers to <a href=\"https:\/\/www.lambdatest.com\/blog\/fixing-javascript-cross-browser-compatibility-issues\/\" target=\"_blank\" rel=\"noopener noreferrer\">fix browser compatibility issues<\/a>. You can do all that on your locally hosted webpages using Lambda Tunnel which helps to establish an SSH(Secure Shell) connection between your machine to their cloud servers.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-1-1024x564.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24264\" width=\"768\" height=\"423\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-1-1024x564.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-1-300x165.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-1-768x423.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-1.png 1600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-19-1-1024x591.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24265\" width=\"768\" height=\"443\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-19-1-1024x591.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-19-1-300x173.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-19-1-768x444.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-19-1.png 1600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Alternative Methods To CSS Text-Orientation<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">1.Word Break<\/h2>\n\n\n\n<p>CSS \u2018word-break\u2019 property defines how a line break occurs whenever text reaches the end of the line and would overflow its container.<\/p>\n\n\n\n<p><b>Syntax<\/b><br><b>word-break:<\/b> normal|break-all|keep-all|break-word;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>normal: default rule for a line break.<\/li><li>break-all: to avoid overflow from container word is broken at any letter.<\/li><li>keep-all: same as normal but for Chinese, Japanese and Korean \u2013 do not use any word break.<\/li><li>break-word: in absence of breakpoints in a line, work can be broken at any arbitrary point.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Browser Support<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"322\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-4-1024x322.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24266\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-4-1024x322.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-4-300x94.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-4-768x241.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-4.png 1586w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Unlike text-orientation, the word-break property is supported by all browsers including Microsoft Edge and all versions of Internet Explorer as well.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating Vertical Text With Word-Break Property<\/h3>\n\n\n\n<p>We can set the word-break property to break all value and reduce the width of the container to 0px. This would force all the words to be broken at every letter and appear in a vertical fashion. Also set white-space to pre-wrap to make sure white spaces(blank space) is visible so that the distinction between words can be made.<\/p>\n\n\n\n<div>\n<div id=\"highlighter_651948\" class=\"syntaxhighlighter  perl\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">01<\/div>\n<div class=\"line number2 index1 alt1\">02<\/div>\n<div class=\"line number3 index2 alt2\">03<\/div>\n<div class=\"line number4 index3 alt1\">04<\/div>\n<div class=\"line number5 index4 alt2\">05<\/div>\n<div class=\"line number6 index5 alt1\">06<\/div>\n<div class=\"line number7 index6 alt2\">07<\/div>\n<div class=\"line number8 index7 alt1\">08<\/div>\n<div class=\"line number9 index8 alt2\">09<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<div class=\"line number17 index16 alt2\">17<\/div>\n<div class=\"line number18 index17 alt1\">18<\/div>\n<div class=\"line number19 index18 alt2\">19<\/div>\n<div class=\"line number20 index19 alt1\">20<\/div>\n<div class=\"line number21 index20 alt2\">21<\/div>\n<div class=\"line number22 index21 alt1\">22<\/div>\n<div class=\"line number23 index22 alt2\">23<\/div>\n<div class=\"line number24 index23 alt1\">24<\/div>\n<div class=\"line number25 index24 alt2\">25<\/div>\n<div class=\"line number26 index25 alt1\">26<\/div>\n<div class=\"line number27 index26 alt2\">27<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"perl plain\">&lt;!DOCTYPE html&gt;<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"perl plain\">&lt;html lang=<\/code><code class=\"perl string\">\"en\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"perl plain\">&lt;head&gt;<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta charset=<\/code><code class=\"perl string\">\"utf-8\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta http-equiv=<\/code><code class=\"perl string\">\"X-UA-Compatible\"<\/code> <code class=\"perl plain\">content=<\/code><code class=\"perl string\">\"IE=edge\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta name=<\/code><code class=\"perl string\">\"viewport\"<\/code> <code class=\"perl plain\">content=<\/code><code class=\"perl string\">\"width=device-width, initial-scale=1\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;title&gt;Vertical oriented text&lt;\/title&gt;<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;style&gt;<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">h2 {<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">margin-left: 10%;<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">width: 50%;<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">text-align: center;<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">.vertical-text {<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">margin-left: 100px;<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">width: 0px;<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">word-break: break-all;<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">white-space: pre-wrap;<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">color: rgb(121, 202, 0);<\/code><\/div>\n<div class=\"line number20 index19 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number21 index20 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/style&gt;<\/code><\/div>\n<div class=\"line number22 index21 alt1\"><code class=\"perl plain\">&lt;\/head&gt;<\/code><\/div>\n<div class=\"line number23 index22 alt2\"><code class=\"perl plain\">&lt;body&gt;<\/code><\/div>\n<div class=\"line number24 index23 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;h2&gt;Using css word-break property as fallback to text-orientation. word-break is supported by all browsers including Edge and IE&lt;\/h2&gt;<\/code><\/div>\n<div class=\"line number25 index24 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;p class=<\/code><code class=\"perl string\">\"vertical-text\"<\/code><code class=\"perl plain\">&gt;word-break css property&lt;\/p&gt;<\/code><\/div>\n<div class=\"line number26 index25 alt1\"><code class=\"perl plain\">&lt;\/body&gt;<\/code><\/div>\n<div class=\"line number27 index26 alt2\"><code class=\"perl plain\">&lt;\/html&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-20-1-1024x578.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24267\" width=\"768\" height=\"434\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-20-1-1024x578.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-20-1-300x169.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-20-1-768x433.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-20-1.png 1600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">2.Word-wrap\/overflow-wrap<\/h2>\n\n\n\n<p>The CSS word-wrap forces allow long words to be broken and wrapped onto the next line to avoid overflow. The word-wrap property is now also reffered as <b>overflow-wrap<\/b>. All browser support the word-wrap syntax including Edge and IE while Chrome and opera support the new overflow-wrap syntax.<\/p>\n\n\n\n<p><b>Syntax<\/b><\/p>\n\n\n\n<p>word-wrap: normal|break-word|initial|inherit;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>normal: Break words only at normal separation points.<\/li><li>break-word: Any word can be broken at an arbitrary point.<\/li><li>Initial: Sets to a default value.<\/li><li>Inherit: transfers this property from parent to a child element.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Browser Support<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image7-3-1024x349.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24268\" width=\"768\" height=\"262\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image7-3-1024x349.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image7-3-300x102.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image7-3-768x262.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image7-3.png 1583w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>Just like word-break, word-wrap property is also supported by all browsers including Microsoft Edge and all versions of Internet Explorer as well.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating vertical text with word-wrap property<\/h3>\n\n\n\n<p>We can use the same strategy as we used in case of word-break property to reduce the width of the container to 0px and force every word to be broken at every letter and appear in a vertical orientation while each individual character remaining upright. Once again, set white-space to pre-wrap to make sure white spaces(blank space) is visible so that the distinction between words can be made.<\/p>\n\n\n\n<div>\n<div id=\"highlighter_538937\" class=\"syntaxhighlighter  perl\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">01<\/div>\n<div class=\"line number2 index1 alt1\">02<\/div>\n<div class=\"line number3 index2 alt2\">03<\/div>\n<div class=\"line number4 index3 alt1\">04<\/div>\n<div class=\"line number5 index4 alt2\">05<\/div>\n<div class=\"line number6 index5 alt1\">06<\/div>\n<div class=\"line number7 index6 alt2\">07<\/div>\n<div class=\"line number8 index7 alt1\">08<\/div>\n<div class=\"line number9 index8 alt2\">09<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<div class=\"line number17 index16 alt2\">17<\/div>\n<div class=\"line number18 index17 alt1\">18<\/div>\n<div class=\"line number19 index18 alt2\">19<\/div>\n<div class=\"line number20 index19 alt1\">20<\/div>\n<div class=\"line number21 index20 alt2\">21<\/div>\n<div class=\"line number22 index21 alt1\">22<\/div>\n<div class=\"line number23 index22 alt2\">23<\/div>\n<div class=\"line number24 index23 alt1\">24<\/div>\n<div class=\"line number25 index24 alt2\">25<\/div>\n<div class=\"line number26 index25 alt1\">26<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"perl plain\">&lt;!DOCTYPE html&gt;<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"perl plain\">&lt;html lang=<\/code><code class=\"perl string\">\"en\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"perl plain\">&lt;head&gt;<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta charset=<\/code><code class=\"perl string\">\"utf-8\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta http-equiv=<\/code><code class=\"perl string\">\"X-UA-Compatible\"<\/code> <code class=\"perl plain\">content=<\/code><code class=\"perl string\">\"IE=edge\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;meta name=<\/code><code class=\"perl string\">\"viewport\"<\/code> <code class=\"perl plain\">content=<\/code><code class=\"perl string\">\"width=device-width, initial-scale=1\"<\/code><code class=\"perl plain\">&gt;<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;title&gt;Vertical oriented text&lt;\/title&gt;<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;style&gt;<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">h2 {<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">text-align: center;<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">.vertical-text {<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">margin-left: 100px;<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">width: 0px;<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">word-wrap: break-word;<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">white-space: pre-wrap;<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">color: rgb(121, 202, 0);<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number20 index19 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/style&gt;<\/code><\/div>\n<div class=\"line number21 index20 alt2\"><code class=\"perl plain\">&lt;\/head&gt;<\/code><\/div>\n<div class=\"line number22 index21 alt1\"><code class=\"perl plain\">&lt;body&gt;<\/code><\/div>\n<div class=\"line number23 index22 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;h2&gt;Using css word-wrap property as fallback to text-orientation. word-wrap is supported by all browsers including Edge and IE&lt;\/h2&gt;<\/code><\/div>\n<div class=\"line number24 index23 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;p class=<\/code><code class=\"perl string\">\"vertical-text\"<\/code><code class=\"perl plain\">&gt;word-wrap css property&lt;\/p&gt;<\/code><\/div>\n<div class=\"line number25 index24 alt2\"><code class=\"perl plain\">&lt;\/body&gt;<\/code><\/div>\n<div class=\"line number26 index25 alt1\"><code class=\"perl plain\">&lt;\/html&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-21-1-1024x579.png\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24269\" width=\"768\" height=\"434\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-21-1-1024x579.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-21-1-300x170.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-21-1-768x434.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-21-1.png 1600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">3. &lt; br &gt; tag<\/h2>\n\n\n\n<p>The most primitive method to achieve vertical text orientation is by the use of break &lt; br &gt; tags. However, this method is not very practical and should not be used if the string of text is too long.<\/p>\n\n\n\n<div>\n<div id=\"highlighter_829108\" class=\"syntaxhighlighter  perl\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"perl plain\">&lt;p&gt;<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">V &lt;br&gt; E &lt;br&gt; R &lt;br&gt; T &lt;br&gt; I &lt;br&gt; C &lt;br&gt; A &lt;br&gt; L &lt;br&gt; &lt;br&gt; T &lt;br&gt; E &lt;br&gt; X &lt;br&gt; T<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"perl plain\">&lt;\/p&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">4. &lt; span &gt; wrapping<\/h2>\n\n\n\n<p>Another popular method is to wrap each letter of the text desired to be vertically orientated inside a span tag and using CSS to assign display: block to each span wrapper. Again just like using &lt; br &gt; tag, this method is not practical for large text strings.<\/p>\n\n\n\n<div>\n<div id=\"highlighter_85315\" class=\"syntaxhighlighter  perl\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">01<\/div>\n<div class=\"line number2 index1 alt1\">02<\/div>\n<div class=\"line number3 index2 alt2\">03<\/div>\n<div class=\"line number4 index3 alt1\">04<\/div>\n<div class=\"line number5 index4 alt2\">05<\/div>\n<div class=\"line number6 index5 alt1\">06<\/div>\n<div class=\"line number7 index6 alt2\">07<\/div>\n<div class=\"line number8 index7 alt1\">08<\/div>\n<div class=\"line number9 index8 alt2\">09<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<div class=\"line number17 index16 alt2\">17<\/div>\n<div class=\"line number18 index17 alt1\">18<\/div>\n<div class=\"line number19 index18 alt2\">19<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"perl plain\">&lt;head&gt;<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;style&gt;<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">p span {<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">display: block;<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/style&gt;<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"perl plain\">&lt;\/head&gt;<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"perl plain\">&lt;body&gt;<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;p&gt;<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; V &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; E &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; R &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; T &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; I &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; C &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; A &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;span&gt; L &lt;\/span&gt;<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/p&gt;<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"perl plain\">&lt;\/body&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">5. Using JavaScript<\/h2>\n\n\n\n<p>A much better approach is to use a single line of javascript code to dynamically add span wrapper around each letter of the concerned text that needs to vertically oriented rather than manually adding spans in HTML. The text is split into an array and each array element is wrapped around by span tag.<\/p>\n\n\n\n<div>\n<div id=\"highlighter_373176\" class=\"syntaxhighlighter  perl\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">01<\/div>\n<div class=\"line number2 index1 alt1\">02<\/div>\n<div class=\"line number3 index2 alt2\">03<\/div>\n<div class=\"line number4 index3 alt1\">04<\/div>\n<div class=\"line number5 index4 alt2\">05<\/div>\n<div class=\"line number6 index5 alt1\">06<\/div>\n<div class=\"line number7 index6 alt2\">07<\/div>\n<div class=\"line number8 index7 alt1\">08<\/div>\n<div class=\"line number9 index8 alt2\">09<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"perl plain\">&lt;head&gt;<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;style&gt;<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">h1 span {<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">display: block;<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">}<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/style&gt;<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"perl plain\">&lt;\/head&gt;<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"perl plain\">&lt;body&gt;<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;h1&gt; VERTICAL &lt;\/h1&gt;<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"perl spaces\">&nbsp;<\/code>&nbsp;<\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;script&gt;<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">var text = document.getElementsByTagName(<\/code><code class=\"perl string\">'h1'<\/code><code class=\"perl plain\">)[0];<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">text.innerHTML = <\/code><code class=\"perl string\">'&lt;span&gt;'<\/code> <code class=\"perl plain\">+ text.innerHTML.<\/code><code class=\"perl functions\">split<\/code><code class=\"perl plain\">(<\/code><code class=\"perl string\">''<\/code><code class=\"perl plain\">).<\/code><code class=\"perl functions\">join<\/code><code class=\"perl plain\">(<\/code><code class=\"perl string\">'&lt;\/span&gt;&lt;span&gt;'<\/code><code class=\"perl plain\">) + <\/code><code class=\"perl string\">'&lt;\/span&gt;'<\/code><code class=\"perl plain\">;<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"perl spaces\">&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"perl plain\">&lt;\/script&gt;<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"perl plain\">&lt;\/body&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Creating vertically oriented text has always been a challenge in CSS since time immemorial itself. No solution or fix could promise an immaculate result. However, the introduction of new CSS3 text-orientation property has completely solved that conundrum. A word of caution is appropriate for developers who are planning to deploy this feature in production version of their projects. text-orientation is relatively a new property and might undergo syntax change in future and developers shouldn\u2019t forget to code necessary fallbacks for Microsoft Edge and Internet Explorer to ensure cross browser compatibility. If you have any other alternatives to text-orientation in mind, let me know in the comments below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber.jpg\" alt=\"Cross Browser Compatibility\" class=\"wp-image-24253\" width=\"698\" height=\"135\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber.jpg 930w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber-300x58.jpg 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber-768x149.jpg 768w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/figure><\/div>\n\n\n\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>\n<p>Published on Web Code Geeks with permission by Nikhil Tyagi, partner at our <a href=\"\/\/www.webcodegeeks.com\/join-us\/wcg\/\" target=\"_blank\" rel=\"noopener noreferrer\">WCG program<\/a>. See the original article here: <a href=\"https:\/\/www.lambdatest.com\/blog\/why-developers-still-hate-vertical-text-orientation-in-css\/\" target=\"_blank\" rel=\"noopener noreferrer\">Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility?<\/a><\/p>\n<p>Opinions expressed by Web Code Geeks contributors are their own.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The necessity for vertical text-orientation might not seem evident at first and its use rather limited solely as a design aspect for web pages. However, many Asian languages like Mandarin or Japanese scripts can be written vertically, flowing from right to left or in case of Mongolian left to right. In such languages, even though &hellip;<\/p>\n","protected":false},"author":12181,"featured_media":917,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-24249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility? - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn about Cross Browser Compatibility? Check our article explaining how Vertical Text Orientation hardens Cross Browser Compatibility\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility? - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn about Cross Browser Compatibility? Check our article explaining how Vertical Text Orientation hardens Cross Browser Compatibility\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-21T10:15:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nikhil Tyagi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nikhil Tyagi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\"},\"author\":{\"name\":\"Nikhil Tyagi\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9\"},\"headline\":\"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility?\",\"datePublished\":\"2019-03-21T10:15:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\"},\"wordCount\":1462,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\",\"name\":\"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility? - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"datePublished\":\"2019-03-21T10:15:48+00:00\",\"description\":\"Interested to learn about Cross Browser Compatibility? Check our article explaining how Vertical Text Orientation hardens Cross Browser Compatibility\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/css\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9\",\"name\":\"Nikhil Tyagi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g\",\"caption\":\"Nikhil Tyagi\"},\"description\":\"Experienced Frontend Developer and UX Designer who specializes in HTML5, CSS3 SASS\/SCSS, Bootstrap 4, Materialize, Semantic UI frameworks, Javascript, Jquery, Ajax, React JS and APIs.\",\"sameAs\":[\"https:\/\/www.lambdatest.com\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/nikhil-tyagi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility? - Web Code Geeks - 2026","description":"Interested to learn about Cross Browser Compatibility? Check our article explaining how Vertical Text Orientation hardens Cross Browser Compatibility","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/","og_locale":"en_US","og_type":"article","og_title":"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility? - Web Code Geeks - 2026","og_description":"Interested to learn about Cross Browser Compatibility? Check our article explaining how Vertical Text Orientation hardens Cross Browser Compatibility","og_url":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2019-03-21T10:15:48+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","type":"image\/jpeg"}],"author":"Nikhil Tyagi","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Nikhil Tyagi","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/"},"author":{"name":"Nikhil Tyagi","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9"},"headline":"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility?","datePublished":"2019-03-21T10:15:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/"},"wordCount":1462,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/","url":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/","name":"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility? - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","datePublished":"2019-03-21T10:15:48+00:00","description":"Interested to learn about Cross Browser Compatibility? Check our article explaining how Vertical Text Orientation hardens Cross Browser Compatibility","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/css\/vertical-text-orientation-nightmare-browser-compatibility\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/www.webcodegeeks.com\/category\/css\/"},{"@type":"ListItem","position":3,"name":"Why Vertical Text Orientation Is A Nightmare For Cross Browser Compatibility?"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9","name":"Nikhil Tyagi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g","caption":"Nikhil Tyagi"},"description":"Experienced Frontend Developer and UX Designer who specializes in HTML5, CSS3 SASS\/SCSS, Bootstrap 4, Materialize, Semantic UI frameworks, Javascript, Jquery, Ajax, React JS and APIs.","sameAs":["https:\/\/www.lambdatest.com"],"url":"https:\/\/www.webcodegeeks.com\/author\/nikhil-tyagi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/24249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/12181"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=24249"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/24249\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/917"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=24249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=24249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=24249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}