PDA

View Full Version : Blank lines above tables



qwertysaur
08-26-2008, 03:36 AM
if you look in this thread (http://forums.eyesonff.com/general-chat/119773-scummies-your-consideration.html), you will see a lot of blank lines above each table. What is causing this, and how can I fix it?

Edit: Attached is the coding for one of the tables.

o_O
08-26-2008, 04:14 AM
It's tricky when posting tables in vBulletin, because every new line in the textbox is translated to <br /> when you post. This means that you have to keep everything on the same line unless you specifically want to put a line break in. In the code box below, you can see that even between the end of one <tr> and the beginning of the next, it's even changing those line breaks into <br />s. Additionally, if you put content inside a table, but not in a tr or a td, then you're going to see that content render outside of the table. In this case, all of the line breaks are rendering outside of the table, and also the first block of text from the link to the thread until "Victory: Town".

What you need to do is make sure all of that is inside a <tr><td></td></tr>, and then put all of the elements in the table onto the same line (as per the first few tables in the post). If there's text needs a line break, then it's safe to have that there, so long as it's inside a td.


<table width="5" height="1" cellpadding="5" cellspacing="5" summary="Mafia V part 1" border="0">
Mafia V, hosted by qwertyxsora and Psychotic. (http://forums.eyesonff.com/mafia/113951-mafia-v-official-game-thread-day-7-game-over-town-win.html)
Theme: Final Fantasy
Victory: Town
<tr><td>Aeris</td>
<td>Mason</td>
<td>Raebus & Shauna</td>
<td>Survived, winner</td>
</tr>
<tr>
<td>Auron</td>
<td>Mafia Ninja</td>
<td>oddler</td>
<td>Shot night 3, loser</td>
</tr>
<tr>
<td>Barret</td>
<td>Roleblocker</td>
<td>Captain Maxx Power</td>
<td>Shot night three, winner</td>
</tr>
<tr>
<td>Basch</td>
<td>Faith Healer</td>
<td>Aerith's Knight</td>
<td>Hit by a meteor and shot night 4, winner</td>
</tr>
<tr>
<td>Cid</td>
<td>Nexus</td>
<td>Dolentrean</td>
<td>Survived, winner</td>
</tr>
<tr>
<td>Cyan</td>
<td>Mason</td>
<td>fire_of_avalon</td>
<td>Trampled by chocobos night 2, winner</td>
</tr>
<tr>
<td>Edgar</td>
<td>Mafia cop</td>
<td>leader of mortals and Goldenboko</td>
<td>Lynched day 7</td>
</tr>
<tr>
<td>Edge</td>
<td>Vigilante</td>
<td>Kentarou and Shiny</td>
<td>Sledgehammered night 4, winner</td>
</tr>
<tr>
<td>Faris</td>
<td>Survivor</td>
<td>Bahamut2000X</td>
<td>Toastered night 4</td>
</tr>
<tr>
<td>Firion</td>
<td>Miller</td>
<td>Lekana</td>
<td>Survived, Winner</td>
</tr>
<tr>
<td>Fran</td>
<td>Mafia Goon</td>
<td>Miriel</td>
<td>Lynched day 5</td>
</tr>
<tr>
<td>Freya</td>
<td>Wanabee Mafia Usurper</td>
<td>Jessweee and death by moogles</td>
<td>lynched day 4, winner</td>
</tr>
<tr>
<td>Ingus</td>
<td>Saulus</td>
<td>Goldenboko</td>
<td>Restuant booth'd night 1, semi winner</td>
</tr>
<tr>
<td>Irvine</td>
<td>Lover(killer)</td>
<td>Denmark</td>
<td>Decapitated night 2</td>
</tr>
<tr>
<td>Lulu</td>
<td>Lover(Doctor)</td>
<td>Demon Dude</td>
<td>lynched day 2</td>
</tr>
<tr>
<td>Mog</td>
<td>Watcher</td>
<td>Sheep</td>
<td>lynched day 3<, winner</td>
</tr>
<tr>
<td>Quina</td>
<td>Mafia Godfather</td>
<td>Roto13</td>
<td>Lynched day 6</td>
</tr>
<tr>
<td>Ramza</td>
<td>Jailkeeper</td>
<td>Neocracker</td>
<td>pummeled to death night 6, winner</td>
</tr>
<tr>
<td>Rinoa</td>
<td>Gunsmith</td>
<td>Del Murder</td>
<td>Survived, winner</td>
</tr>
<tr>
<td>Rydia</td>
<td>Hider</td>
<td>Shiny</td>
<td>Lynched day 1, winner</td>
</tr>
<tr>
<td>Terra</td>
<td>Tracker</td>
<td>Sir Lancealot</td>
<td>Stapped night 2, winner</td>
</tr>
<tr>
<td>Vivi</td>
<td>Jester</td>
<td>Sergent Hartman</td>
<td>Killed self day 7</td>
</tr>
</table>

qwertysaur
08-26-2008, 04:33 AM
Thank you so much. Now all I have to do is fix it in the tables. :p