Posted By

jkandei on 10/16/10


Tagged

css text nettuts vertival


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

bogastyle
Priestd09


The Easiest Way to Create Vertical Text with CSS | Nettuts


 / Published in: HTML
 

URL: http://net.tutsplus.com/tutorials/html-css-techniques/the-easiest-way-to-create-vertical-text-with-css/

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

  1. <!DOCTYPE html>
  2. <meta charset=utf-8 />
  3. <title>JS Bin</title>
  4.  
  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  

You need to login to post a comment.