CSS for Vertical Text

Discussion in 'CSS' started by 2bnumber1, May 14, 2007.

  1. #1
    Hi folks,

    The following code provides you with vertical text but it only works in IE.

    <style>
    <!--
    .verticaltext {
    writing-mode: tb-rl;
    filter: flipv fliph;
    }
    -->
    </style>
    
    <div class="verticaltext">Text Like So, ya know!</div>
    HTML:
    The output of the above code is:
    [​IMG]

    Does anyone know if there is a method to do vertical text in Firefox/Opera/All other browsers?
     

    Attached Files:

    2bnumber1, May 14, 2007 IP
  2. webdesigner

    webdesigner Well-Known Member

    Messages:
    489
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    webdesigner, May 14, 2007 IP
  3. xooMan

    xooMan Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Vertical text is extremely hard to read, and not as good from usability standpoint.
     
    xooMan, May 14, 2007 IP
  4. vvm

    vvm Peon

    Messages:
    19
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    CSS specification support vertical text, but all browsers except IE do not work with this. If you can, try to solve the problem via Javascript.
     
    vvm, May 14, 2007 IP
  5. xooMan

    xooMan Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Another option: if you are using PHP take a look at GD library, it allows to generate graphic files. Vertical text shouldn't be hard to implement with GD -- you will just have to set rotation angle.
     
    xooMan, May 14, 2007 IP