PDA

View Full Version : Vertical Text in a table


patrickd
06-22-2003, 02:16 AM
Normaly you place text horizontaly. Can you place text in a tabel verticaly? If yes, how?
I use asp to get the text out a database

Bullschmidt
06-23-2003, 11:58 PM
Well besides this (perhaps within a table cell):
H<br>
E<br>
L<br>
L<br>
O<br>

Which outputs this:
H
E
L
L
O

You might want to check a DHTML/CSS/JavaScript board...

Vimal
06-24-2003, 01:46 AM
Maybe you can try this one out :



<table border="1" align="center" height="1" width="50%">
<tr>
<th height="1" align="center" width="20%">
<font color="black"><font size="2"><div align="center">Field 1</div></font>
</th>
<th height="1" align="center" width="20%">
<font color="black"><font size="2"><div align="center">Field 2</div></font>
</th>
<th height="1" align="center" width="40%">
<font color="black"><font size="2"><div align="center">Field 3</div></font>
</th>
<th height="1" align="center" width="20%">
<font color="black"><font size="2"><div align="center">Field 4</div></font>
</th>
</tr>

<%
While Not connrcs.EOF

' This part will make the result be in hypertext, so that when u
' click on it, it will direct you to page.asp.

Response.Write "<tr><th><font size=2><p align=center><a href=""page.asp?id=" & connrcs(0) & """><br>"

Response.Write Server.HtmlEncode(connrcs(1)) & "</a></td></p>"

' If you dont want the hypertext, you omit the two lines above
' and continue with these.

Response.Write "<td><font size=2><center>" & connrcs(2) & "</td></font></center>"

Response.Write "<td><font size=2><center>" & connrcs(3) & "</td></font></center>"

Response.Write "<td><font size=2><center>" & connrcs(4) & "</td></font></center>"

Response.Write "</tr>" & vbCrLf

connrcs.MoveNext
Wend