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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vertical Tilt of a Text Label in a Table

Status
Not open for further replies.

varavoorvishnu

Programmer
Sep 9, 2002
45
Hi All,
Is it possible to vertically tilt a text label in a table of HTML file using CSS.
since this html file runs both IE5+ and NS4.7.
Plz get bak to me ASAP.

Thanx in Advance.
Vishnu
 
Code:
<label style=&quot;position:absolute;filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)&quot;>This is vertical text</label>
 
Hi Supra,
Thnx for the immediate response.
I dont want the text to be displayed 180* instead i want them display 90* titled.
What u have done is mutual wrapping of the whole text written 180*.
If u could help me in this issue it would be of great help.


Thnz in Advance,
Vishnu
:)
 
Just change rotation=3 to rotation=1.
Code:
<label style=&quot;position:absolute;filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)&quot;>This is vertical text</label>
 
Hi my friend ...
Just check whether there is anything wrong with the code...

<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME=&quot;Generator&quot; CONTENT=&quot;EditPlus&quot;>
<META NAME=&quot;Author&quot; CONTENT=&quot;&quot;>
<META NAME=&quot;Keywords&quot; CONTENT=&quot;&quot;>
<META NAME=&quot;Description&quot; CONTENT=&quot;&quot;>
</HEAD>

<BODY><TABLE>
<TR>
<TD><label style=&quot;position:absolute;filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)&quot;>This is vertical text</label></TD>
<TD>AAAA</TD>
</TR>
<TR>
<TD>BBBB</TD>
<TD></TR>
</TABLE>
</BODY>
</HTML>


Vishnu
 
The text crams together because the text label is set to position:absolute. I won't suggest a fix as of yet because I'm not exactly sure what you need. Where exactly do you want the vertical text?
 
Hi supra..
I wanted the table headers to appear in vertical fashion (i.e) exactly titled 90* above the corresponding data since the table is big to fit the page rather than displaying the headers horizontally manner.
This is the scenarion where i need this type of tilting the text.

Vishnu
 
Here is a link that may help, IE only though by the look of it.
thread215-269209 Hope I helped / Thanks for helping
if ((x<10&&y<10) &&(((parseInt(x.toString()+y.toString())-x-y)%9)!=0)){ alert(&quot;I'm a monkey's uncle&quot;); }
 
varavoorvishnu

I dont want the text to be displayed 180* instead i want them display 90* titled.


Do you mean 45' or 90'??

The code provided does exactly as you asked.

45' is approximately the same as a slash. 90' is a right angle. ^
180' rotation of text would make it upside-down.
360' is a full rotation.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top