<html> <head> <meta charset="utf-8"> <style> body > div { width:225px; height:225px; } body > div > div { width:200px; height:220px; border:1px solid red; line-height:20px; text-transform: full-width; } .v-rl { writing-mode:vertical-rl; text-orientation:upright } </style> </head> <body> <div> <div id="test2" class="v-rl"> A B C D E F G H I J K <span>L <span>M N</span> O</span> P Q R S T U V W X Y </div> </div> </body> </html>