RolePlay onLine RPoL Logo

, welcome to Technical Discussions

12:40, 26th April 2024 (GMT+0)

Vertical header lines in header?

Posted by Xgamer4
Xgamer4
member, 114 posts
I bring nothing
to the table
Tue 1 Jul 2014
at 06:11
  • msg #1

Vertical header lines in header?

A long time ago, I thought I remembered seeing someone create a table with vertical headings as part of shrinking down a table for use. Ex:

This is verticalThis tooSo is this
XOX
OXO
XOX


Instead of the headers like 'This is vertical' it would display as if rotated 90 degrees counter-clockwise. Any way to do that or was I hallucinating that long ago?
jase
admin, 3368 posts
Cogito, ergo procuro.
Carpe stultus!
Tue 1 Jul 2014
at 13:29

Re: Vertical header lines in header?

Short answer - You were hallucinating.  (c;

Long answer - Though there's a few ways to do it in HTML, there's no one method that guarantees it will be rendered in all browsers.  So without a reliable method we unfortunately can't have vertical text.
Glenn Loos-Austin
member, 6 posts
Age 44
Tue 1 Jul 2014
at 15:07
  • msg #3

Re: Vertical header lines in header?

A workaround if you really need one might be this:

<img src="http://www.themedianinja.com/RPoL/v/v1.png"><img src="http://www.themedianinja.com/RPoL/v/v2.png"><img src="http://www.themedianinja.com/RPoL/v/v3.png">
XOX
OXO
XOX


which works in a game thread, but not here on Tech. Discussions, where images aren't allowed.

But I think this would only be worth it if you were going to use the table a lot, since it's a hassle to set up.

If someone really had the gumption, they could write a php script that took the desired caption as a parameter and output the needed graphic, which would look work like this:

<img src="http://www.fake.fake/RPoL/vtext.php?t=This is Vertical"><img src="http://www.fake.fake/RPoL/vtext.php?t=This Too"><img src="http://www.fake.fake/RPoL/vtext.php?t=So is This">
XOX
OXO
XOX


If it's important, I can write such a script. (In truth, I suspect usage would be low enough that I could host it if desired, though I might need to research that a bit.)

Obvious caveats would apply, the vertical text graphic wouldn't change with the theme, wouldn't get extra-pixels on retina displays, isn't localizable, etc... etc...
This message was last edited by a moderator, as it was against the forum rules, at 15:33, Tue 01 July 2014.
Glenn Loos-Austin
member, 7 posts
Age 44
Tue 1 Jul 2014
at 15:52
  • msg #4

Re: Vertical header lines in header?

Didn't realize I couldn't link to it either. So, you'll need to copy the code and paste it into your own thread if you want to see what it looks like.


<table><tr><th><img src="http://www.themedianinja.com/RPoL/v/v1.png"></th><th><img src="http://www.themedianinja.com/RPoL/v/v2.png"></th><th><img src="http://www.themedianinja.com/RPoL/v/v3.png"></th></tr>
<tr><td>X</td><td>O</td><td>X</td></tr>
<tr><td>O</td><td>X</td><td>O</td></tr>
<tr><td>X</td><td>O</td><td>X</td></tr>
</table>


Xgamer4
member, 115 posts
I bring nothing
to the table
Tue 1 Jul 2014
at 23:24
  • msg #5

Re: Vertical header lines in header?

Eh, it's not that important, it would just make things fit in a window better, but that's why they made scrollbars, right? :)

Thanks for the input guys!
Sign In