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

Vertical text? 1

Status
Not open for further replies.

snoopy75

Technical User
Aug 24, 2001
340
US
I want the text in a table cell to look like

T
H
I
S

I've tried layout-flow:vertical-ideographic and writing-mode:tb-rl, and nothing happens either way. I'm using IE6. Any ideas? Thanks!

--Ryan
 
<br /> is the XHTML version of <br>. In XHTML, all tags must be closed, so if there is a tag like <img> or <br>, <hr>, they don't get closed by doing </br>, etc. They must be closed like this:
<img/>
<br/>
<hr/>
The space is because NS messes things up if there is no space.

Rick -----------------------------------------------------------
 
Hi Ryan,

Try this:

<html>
<head>
<style>
.verticaltext {
writing-mode: tb-rl;
filter: flipv fliph;
}
</style>
</head>
<body>
<table border=&quot;1&quot;>
<tr>
<td><div class=&quot;verticaltext&quot;>This is Vertical Text</div></td>
<td><div class=&quot;verticaltext&quot;>This is another Vertical Text</div></td>
<td>This is NOT Vertical Text</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</table>
</body>
</html>

Hope this helps,
Erik
<-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Hi guys,

Just be aware that this requires IE5.5 or higher.

Adam's suggestion is the best way to go and will show it in the way that you wanted in all browsers, lr-tb actually turns the text rather than showing the letters horizontally.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Thanks Adam, that's just what I needed. I feel a bit foolish for not having thought of something that simple, though. :~/

--Ryan
 
Glad I could help ;) - I thought at first maybe I was missing something in your original question lol but like Wullie said the easiest ones get the most time spent on them. Adam

PC-Tek Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top