Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Vertical text in <td>

Reply
Thread Tools

Vertical text in <td>

 
 
Peter Lauri
Guest
Posts: n/a
 
      11-22-2004
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


 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      11-22-2004
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.


 
Reply With Quote
 
 
 
 
Peter Lauri
Guest
Posts: n/a
 
      11-22-2004
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.
>
>



 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      11-22-2004
"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
 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      11-22-2004
"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
 
Reply With Quote
 
Peter Lauri
Guest
Posts: n/a
 
      11-22-2004
Do you mean to use the GD-lib and create the images and then just rotate
them?

/Peter


"Spartanicus" <> skrev i meddelandet
news: anicus.utvinternet.ie...
> "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



 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      11-22-2004
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

 
Reply With Quote
 
Jan Faerber
Guest
Posts: n/a
 
      11-22-2004
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,2 55);
$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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vertical text Pawel HTML 1 05-13-2005 05:09 PM
Vertical Text Crystal report and Asp.net Joseba Mirena ASP .Net 0 03-28-2005 01:31 PM
converting vertical text to horizontal text Mike Green Perl Misc 9 02-02-2005 08:56 AM
Vertical draw text not working in Graphics2D? Kevin Java 3 01-05-2005 05:38 PM
how to Align text left & vertical align middle Kay ASP .Net 2 07-25-2003 08:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57