Skip to content

Vertical text with horizontal letters in CSS

To display vertical text with horizontal letters we can use two properties – text-orientation: upright and writing-mode: vertical-rl

  <style>
         h2 {
            text-orientation: upright;
            writing-mode: vertical-rl;
         }
   </style>
   <h2>Poopcode</h2>

The output would look like:

See also  Import CSS files using @import in CSS

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.