.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

ATF: Armored Task Force- Save $8.00
War Plan Pacific- Save $8.00

   







Go Back   .com.unity Forums > Shrapnel Community > Shrapnel General

Reply
 
Thread Tools Display Modes
  #1  
Old November 25th, 2003, 03:52 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Figured out how to display tables on this UBB forum

EDIT: The following works in the Space Empires IV forum, but the tables don't work in this general forum. Must be something that is only turned on in certain places. Oh well.


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:
<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>
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...
<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>

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:53: Message edited by: geoschmo ]
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.