PDA

View Full Version : HTML Tables



VeloZer0
04-04-2010, 03:28 PM
I tried to put in a html table in the thread http://forums.eyesonff.com/final-fantasy-tactics/131166-my-character-setup-better-than-yours.html#post2823876, but for some reason it is displaying it with a huge space before the table. Something funky with the forums, or is there some stupid typo I am not seeing?

Flying Mullet
04-04-2010, 04:03 PM
When you write HTML in your posts, it outputs any newlines in your text box. This means that any HTML you write on multiple lines, i.e.

<table>
<tr>
<td>Hello World!</td>
</tr>
</table>

Will output the table and an extra five empty lines in the post, one for each line of HTML. To make the above print out properly in a post, you need to edit it once you've finished to remove any extra newlines, like this:

<table><tr><td>Hello World!</td></tr></table>

Jessweeee♪
04-04-2010, 10:06 PM
It's really annoying! I don't suppose there's a way to get around that ;_;

qwertysaur
04-04-2010, 10:10 PM
I wonder if this will happen in VB4. *checks*

Edit: In VB4, the blank lines are on the bottom now. weird.

VeloZer0
04-05-2010, 12:19 AM
awesome...

Jiro
04-05-2010, 12:49 AM
Even the copypasta from notepad trick doesn't solve the problem I noticed (and then proceeded to break tables as often as I could)

Citizen Bleys
04-15-2010, 04:18 AM
This is a PHP board, and PHP parses \n characters as <br> when displaying on a web page. Ditch any and all whitespace in all HTML code for best results.

Peegee
04-16-2010, 09:50 PM
So is it okay to do /body in my posts? Or just start a table and 'forget' to close it?

http://th05.deviantart.net/fs51/300W/f/2009/332/5/6/Im_Happy_Plz_Base_by_Mongomedia.png

Citizen Bleys
04-17-2010, 01:42 AM
So is it okay to do /body in my posts? Or just start a table and 'forget' to close it?

http://th05.deviantart.net/fs51/300W/f/2009/332/5/6/Im_Happy_Plz_Base_by_Mongomedia.png

This is why HTML should not be enabled on message boards.

That and javascript :bou::bou::bou::bou::bou::bou::bou:Move() commands that redirect the browser to white supremacist websites and emails reports about it to CSIS.

rubah
04-19-2010, 06:46 AM
It seems like there's a limited amount that you can break the tables, really. I'll keep experimenting, though!</table><div style ="top:-150px; left:0px;background:yellow; width: 300%;"></center><table colspan=3 rowspan=5>

o_O
04-19-2010, 08:29 AM
<div :bou::bou::bou::bou::bou::bou::bou:move="var elem = document.getElementsByTagName('TD'); for (var i = 0; i < elem.length; i++) { elem[i].setAttribute('class',''); elem[i].style.width='50px'; }">Oh, there are plenty of ways to break the tables... :p

Jiro
04-19-2010, 01:36 PM
There are? Man I only figured one :/

qwertysaur
04-19-2010, 03:21 PM
There are? Man I only figured one :/
keep experimenting. Tables are very finicky. :p
Try using rowspan and colspan attributes for a lot of fun.