Vertical content? - Posted (1263 Views)
Advanced Member
Etymon
Posts: 2396
2396
My searches have not yielded the results I am looking for.
I want to split a subject line to read vertically instead of horizontally.
Does anyone know how to do this?
Thanks all!
Etymon
<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
JJenson
Posts: 2121
2121
Something like this?
http://www.ssi-developer.net/css/vertical-text.shtml<
Posted
Advanced Member
Etymon
Posts: 2396
2396
Originally posted by JJenson
Something like this?
http://www.ssi-developer.net/css/vertical-text.shtml

Thanks for the reply, Jeff.
That's along the lines of what I wanted, except I was looking for this:

V
e
r
t
i
c
a
l

Here's an additional reference that goes into great detail about the possible future of that aspect of CSS (http://fantasai.inkedblade.net/style/discuss/vertical-text)

<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Can you not just add a line break after each character?
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Average Member
cripto9t
Posts: 881
881
i use this in a numbers pool script I have. I changed the variable names to make it a little more clear.
Code:
Dim strToVert       'Text to turn vertical
Dim iCnt 'Count the letters
Dim strVert 'Resulting vertical text
Dim i ' The counter

strToVert = "Vertical"
iCnt = Len(strToVert)
strVert = ""
for i = 1 to iCnt
strVert = strVert & " " & Mid(strToVert,i,1) & " "
if i < iCnt then strVert = strVert & "<br />"
next

Response.Write strVert

<edit> Removed some unneccesary breaks<
    _-/Cripto9t\-_
Posted
Advanced Member
Etymon
Posts: 2396
2396
Thanks Shaggy! I was able to do that for static text, but I also needed the vertical text to work with variables.
Thanks cripto9t! That's cleaner than what I came up with! My version does same thing, but yours is much quieter.bigsmile
The following made the characters align straighter for my needs:


'#### BEGIN Vertical Text MOD by cripto9t ####'
Code:
Dim strToVert       'Text to turn vertical
Dim iCnt 'Count the letters
Dim strVert 'Resulting vertical text
Dim i 'The counter

strToVert = "Vertical"
iCnt = Len(strToVert)
strVert = ""
for i = 1 to iCnt
strVert = strVert & Mid(strToVert,i,1) if i < iCnt then strVert = strVert & "<br />"
next

Response.Write strVert
'#### END Vertical Text MOD by cripto9t ####'
<
Posted
Average Member
cripto9t
Posts: 881
881
Glad I could help smile. I use it in a table cell that spans multiple rows, so...
Code:
<td style="text-align;center" rowspan="10">
...centers it just fine. I think I added the spaces to make the cell wider.<
    _-/Cripto9t\-_
Posted
Advanced Member
Etymon
Posts: 2396
2396
Originally posted by cripto9t
Glad I could help smile. I use it in a table cell that spans multiple rows, so...
Code:
<td style="text-align;center" rowspan="10">
...centers it just fine. I think I added the spaces to make the cell wider.

Ah! That makes sense then.
My table data was only about 25 pixels wide.<
 
You Must enter a message