The Easiest Way to Create Vertical Text with CSS | Nettuts

/ Published in: HTML
Save to your folder(s)

The easiest way to create vertical text is to use ems in addition with a space between the letters of the word that should be displayed verticaly

Copy this code and paste it in your HTML
  1. <!DOCTYPE html>
  2. <meta charset=utf-8 />
  3. <title>JS Bin</title>
  5. h1 {
  6. width: 1em;
  7. font-size: 40px;
  8. letter-spacing: 40px; /* arbitrary large letter-spacing for safety */
  9. }
  10. </head>
  11. <h1> N e t t u t s </h1>
  12. </body>
  13. </html>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.