Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rotate text in HTML

Tags:

html

jquery

css

Is there a cross-browser method to rotate text from horizontal to vertical?

I need to add a label to a graph. Of course I could use an image but before I did that I thought I'd ask about other alternatives.

Thanks

like image 420
santa Avatar asked Nov 04 '22 20:11

santa


1 Answers

Only thing I can think of is a little bit of SVG.

RaphaelJS aparently handles this sort of thing in a nicely cross-browser way.

Raphaël currently supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+.

Check out their spinning text example.

like image 91
Richard JP Le Guen Avatar answered Nov 14 '22 22:11

Richard JP Le Guen