Vertical text in <td>

Discussion in 'HTML' started by Peter Lauri, Nov 22, 2004.

  1. Peter Lauri

    Peter Lauri Guest

    Best groupmember,

    I want to display text in a cell vertical (standing up). Basicly I want the
    text to rotate 90 degrees. Any tips?

    --
    - Best Of Times
    /Peter Lauri
    Peter Lauri, Nov 22, 2004
    #1
    1. Advertising

  2. Peter Lauri

    rf Guest

    Peter Lauri wrote:

    > Best groupmember,


    Er, what?

    > I want to display text in a cell vertical (standing up). Basicly I want

    the
    > text to rotate 90 degrees. Any tips?


    Use an image.

    --
    Cheers
    Richard.
    rf, Nov 22, 2004
    #2
    1. Advertising

  3. Peter Lauri

    Peter Lauri Guest

    I do not want to use an image, I am generating it from a database.


    "rf" <rf@.invalid> skrev i meddelandet
    news:vBkod.44897$...
    > Peter Lauri wrote:
    >
    > > Best groupmember,

    >
    > Er, what?
    >
    > > I want to display text in a cell vertical (standing up). Basicly I want

    > the
    > > text to rotate 90 degrees. Any tips?

    >
    > Use an image.
    >
    > --
    > Cheers
    > Richard.
    >
    >
    Peter Lauri, Nov 22, 2004
    #3
  4. Peter Lauri

    Spartanicus Guest

    "Peter Lauri" <> wrote:

    >Best groupmember,


    I forgot who that is this month, will I do?

    >I want to display text in a cell vertical (standing up). Basicly I want the
    >text to rotate 90 degrees. Any tips?


    <img src="verticaltext.png" width="50" height="100"
    alt="your_text_here">

    Use one of the css image replacement techniques if the text *must* be
    indexed by badly broken search engines such as Google.

    --
    Spartanicus
    Spartanicus, Nov 22, 2004
    #4
  5. Peter Lauri

    Spartanicus Guest

    "Peter Lauri" <> wrote:

    Top posting is not appreciated here, snipping quotes is, corrected this
    once.

    >> > I want to display text in a cell vertical (standing up). Basicly I want

    >> the
    >> > text to rotate 90 degrees. Any tips?

    >>
    >> Use an image.


    >I do not want to use an image, I am generating it from a database.


    Not possible with html or current css, you could use SVG (which are text
    files), but client support is poor.

    Alternatively there are ways to generate images on the fly.

    --
    Spartanicus
    Spartanicus, Nov 22, 2004
    #5
  6. Peter Lauri

    Peter Lauri Guest

    Do you mean to use the GD-lib and create the images and then just rotate
    them?

    /Peter


    "Spartanicus" <> skrev i meddelandet
    news:...
    > "Peter Lauri" <> wrote:
    >
    > Top posting is not appreciated here, snipping quotes is, corrected this
    > once.
    >
    > >> > I want to display text in a cell vertical (standing up). Basicly I

    want
    > >> the
    > >> > text to rotate 90 degrees. Any tips?
    > >>
    > >> Use an image.

    >
    > >I do not want to use an image, I am generating it from a database.

    >
    > Not possible with html or current css, you could use SVG (which are text
    > files), but client support is poor.
    >
    > Alternatively there are ways to generate images on the fly.
    >
    > --
    > Spartanicus
    Peter Lauri, Nov 22, 2004
    #6
  7. Peter Lauri

    Toby Inkster Guest

    Peter Lauri wrote:

    > Do you mean to use the GD-lib and create the images and then just rotate
    > them?


    I did this for a while using ImageMagick to display a faint copy of the
    page's title text vertically in the background of each page.

    It was quite a nice effect, but it took a lot of CPU. Of course, that
    could be eliminated by caching the images, which I hadn't bothered to do
    as I was only playing about.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
    Now Playing ~ ./richard_marx_-_hazard.ogg
    Toby Inkster, Nov 22, 2004
    #7
  8. Peter Lauri

    Jan Faerber Guest

    Toby Inkster wrote:

    > Peter Lauri wrote:
    >
    >> Do you mean to use the GD-lib and create the images and then just rotate
    >> them?

    >
    > I did this for a while using ImageMagick to display a faint copy of the
    > page's title text vertically in the background of each page.
    >
    > It was quite a nice effect, but it took a lot of CPU. Of course, that
    > could be eliminated by caching the images, which I hadn't bothered to do
    > as I was only playing about.
    >


    or use php ... e.g.:

    http://html.janfaerber.com/php/string_vertical.php

    The script:

    <?php
    $im=ImageCreate (90,20);
    $background_color=ImageColorAllocate($im,255,255,255);
    $text_color=ImageColorAllocate ($im,233,14,91);
    ImageString($im,1,5,5,"Hello World!",$text_color);
    ImagePNG ($im, "hehe.png");
    $im2 = imagerotate ($im, 90, 0);
    ImagePNG($im2,"pic.png");
    ImageDestroy($im);
    ImageDestroy($im2);
    ?>

    <img src="pic.png" border=0>
    <img src="hehe.png" border=0>
    <img src="pic.png" border=0>
    <img src="hehe.png" border=0>



    --
    Jan

    http://html.janfaerber.com
    Jan Faerber, Nov 22, 2004
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kay
    Replies:
    2
    Views:
    7,138
  2. Joseba Mirena

    Vertical Text Crystal report and Asp.net

    Joseba Mirena, Mar 28, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    538
    Joseba Mirena
    Mar 28, 2005
  3. Kevin
    Replies:
    3
    Views:
    10,455
    Kevin
    Jan 5, 2005
  4. Pawel

    vertical text

    Pawel, May 11, 2005, in forum: HTML
    Replies:
    1
    Views:
    476
    Gareth J M Saunders
    May 13, 2005
  5. Mike Green

    converting vertical text to horizontal text

    Mike Green, Feb 1, 2005, in forum: Perl Misc
    Replies:
    9
    Views:
    375
    Arndt Jonasson
    Feb 2, 2005
Loading...

Share This Page