Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text displayed with a 90° orientation as in Excel 2

Status
Not open for further replies.

delorfra

Programmer
Mar 8, 2001
79
FR
Is it possible (using CSS) to have some text displayed with a 90° orientation as we can do in Excel for column headers etc..

Thanks
 
Since no one has answered I thought I would drop my opinion of using a graphic. I know no such way of doing what you suggest. In my sites and many others I have seen use graphics to obtain such a look
 
it might not be what you looking for, however recently
I loaded on a site some sample of XL DB by saving XL doc as a web page
(don't be surprise the result is about 1 ton of MS mix XML code)
Could you in exel create your doc, save it as a web page and edit to suit you ?
 
If you're just supporting IE something like this will work:
Code:
<html>
<head>
<style>
#whatever {
position: absolute;
left: 10px;
top: 10px;
writing-mode: tb-rl;
filter: flipv fliph;
}
</style>
</head>
<body>
<div id=&quot;whatever&quot;>Test</div>
</body>
</html>
 
Thanks a million times Aperfectcircle.
It works perfect and it is quite simple.

Keypounder : I have already tried to use excel-xml tags by saving an Excel sheet to html/xml format. But when the Excel document contains a great number of lines, IE seems overloaded to display the whole page.

François
 
There is just one single thing is that when I use the filter/wrinting-mode style in a cell whre rowspan = 2 it seems that it stops merging the top and bottom cell and writes the text only in the top cell
 
Try adding 'text-align: center' to the style... or if you're still using absolute positioning (like in my example) you can just adjust the top and left values.
If that doesn't work, post the code for the table here...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top