Text rotated 90 - deg. is it possible ?

C

Chris Morris

msorion said:
how can I write a text rotated 90 deg in a table ?

Presumably this is for a data table with a *lot* of column headings,
where sideways text gives more chance of fitting everything into
available width? If not, jump straight to the last paragraph of this
post.

The only way I can think of to do this is to use images of text.
Obviously you'll need to set the alt attribute of the image to be the
same as the text, but I'd recommend setting the title attribute to be
this as well, as this will allow people using some common browsers to
read the text non-sideways by hovering over the heading.

So, for example:
<th scope="col"><img src="SidewaysPicOfHeading-Temperature.png"
alt="Temperature" title="Temperature"></th>

Make sure you pick a readable font and use a decent font size for the
image text (at least 12pt, possibly higher if you can) since image
resizing is not supported by most browsers (Opera, which does support
it, doesn't work that well for enlarging text) and making the text
reasonably large increases the number of people able to read it.

If you provide a URL with an example of where you want to rotate the
text, we might be able to provide more specific advice.
 
H

Headless

Chris Morris said:
since image
resizing is not supported by most browsers (Opera, which does support
it, doesn't work that well for enlarging text)

Works fine if you use gif or png, jpeg shouldn't be used for those sorts
of images.


Headless
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top