|
|
|
|
|
November 25th, 2003, 03:49 PM
|
|
National Security Advisor
|
|
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
|
|
Figured out how to display tables on this forum
Some of you may not particularly care about this, and some of you may have already figured this out. But I haven't seen it posted if anyone has.
There has always been a problem getting tables to display properly on this forum board. The table itself seems to work, but there is always a bunch of blank space before the table starts. Annoying and looks wierd. I have figured out whats causing it and how to avoid it.
The following table code:
code:
<table border=1 cellspacing=1>
<tr>
<td>First cell of first row</td>
<td>Second cell of first row</td>
</tr>
<tr>
<td>First cell of second row</td>
<td>Second cell of second row</td>
</tr>
</table>
Will display like this:
First cell of first row |
Second cell of first row |
First cell of second row |
Second cell of second row |
See the big blank gap before the table starts? Yech!
The problem is all the carriage returns in the table code. The carriage returns are normally ignored when dealing with html, but the UBB is keeping them, and stacking them all up together before the table is displayed.
Same table code with Carriage returns removed...
code:
<table border=1 cellspacing=1><tr><td>First cell of first row</td><td>Second cell of first row</td>
</tr><tr><td>First cell of second row</td><td>Second cell of second row</td></tr></table>
(actually I did insert one CR in here, but only to break up the line and keep the screen formatting correctly. You get the idea.)
...will display like this...
First cell of first row | Second cell of first row | First cell of second row |
Second cell of second row |
See? No spaces before table. Not sure if this is a bug with all UBB Boards or in this particular one. The table code is kind of hard to read without the carriage returns, but the important thing is how it looks in the end result anyway.
Geoschmo
[ November 25, 2003, 13:51: Message edited by: geoschmo ]
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
|
November 25th, 2003, 05:55 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Figured out how to display tables on this forum
I think it is just how UBB renders Posts. Every newline in a post body gets displayed as a newline, regardless of what is actually on it.
|
November 25th, 2003, 06:31 PM
|
Major
|
|
Join Date: Apr 2001
Location: Rosario, Argentina
Posts: 1,047
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Figured out how to display tables on this forum
This should be good HTML practice.
Normally multiple spaces or newlines are interpreted as a single space, but still there.
Line breaks, if necesary, must be within within cell text, since UBB seems to break then the < isn´t in the same line as the >
Like this:
First cell of first row
| Second cell of first row
| First cell of second row
| Second cell of second row |
|
November 25th, 2003, 10:55 PM
|
|
Second Lieutenant
|
|
Join Date: Jul 2003
Location: Texas
Posts: 464
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Figured out how to display tables on this forum
Is there a place to practice or try out things like this? I could make a topic and try, but an out of the way place that doesn't go to the top of the list would be better. Buttons boexes and other HTML stuff could be great.
[ November 25, 2003, 20:56: Message edited by: Parasite ]
__________________
I thought of the sun as a big bright ball of something that produced an intense absence of darkness. Alan Dean Foster No More Crystal Tears
A++SeGdy$+-++Fr?C++++Cst+SfAi--Mm-MpTS---SsROPw++Fq++Nd++++RpG++Mm++Bb
|
November 26th, 2003, 12:12 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
|
|
Re: Figured out how to display tables on this forum
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
|
November 26th, 2003, 12:18 AM
|
|
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
Re: Figured out how to display tables on this forum
|
November 26th, 2003, 12:55 AM
|
|
General
|
|
Join Date: Jan 2003
Location: Atlanta, GA
Posts: 3,499
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Figured out how to display tables on this forum
Kewl beans
__________________
ALLIANCE, n. In international politics, the union of two thieves who have their hands so deeply inserted in each other's pocket that they cannot separately plunder a third. (Ambrose Bierce)
|
November 26th, 2003, 12:57 AM
|
Colonel
|
|
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Figured out how to display tables on this forum
Quote:
Originally posted by Parasite:
Is there a place to practice or try out things like this? I could make a topic and try, but an out of the way place that doesn't go to the top of the list would be better. Buttons boexes and other HTML stuff could be great.
|
There's always the nonsense thread.
|
November 26th, 2003, 01:02 AM
|
|
General
|
|
Join Date: Jan 2003
Location: Atlanta, GA
Posts: 3,499
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Figured out how to display tables on this forum
Can't one practice by just previewing the post?
__________________
ALLIANCE, n. In international politics, the union of two thieves who have their hands so deeply inserted in each other's pocket that they cannot separately plunder a third. (Ambrose Bierce)
|
November 26th, 2003, 01:04 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
|
|
Re: Figured out how to display tables on this forum
| Is
| Very
| Cool |
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|