Results 1 to 13 of 13

Thread: HTML Tables

  1. #1
    Recognized Member VeloZer0's Avatar
    Join Date
    Nov 2006
    Posts
    3,984
    Contributions
    • Notable contributions to Final Fantasy forums

    Default HTML Tables

    I tried to put in a html table in the thread http://forums.eyesonff.com/final-fan...ml#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?

  2. #2
    Old school, like an old fool. Flying Mullet's Avatar
    Join Date
    Apr 2003
    Location
    Napping in a peach tree.
    Posts
    19,185
    Articles
    6
    Blog Entries
    7
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    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>
    Figaro Castle

  3. #3
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,882
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Default

    It's really annoying! I don't suppose there's a way to get around that ;_;

  4. #4
    GO! use leech seed! qwertysaur's Avatar
    Join Date
    Dec 2006
    Location
    Kanto
    Posts
    11,627
    Contributions
    • Former Site Staff

    Default

    I wonder if this will happen in VB4. *checks*

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

  5. #5
    Recognized Member VeloZer0's Avatar
    Join Date
    Nov 2006
    Posts
    3,984
    Contributions
    • Notable contributions to Final Fantasy forums

    Default

    awesome...

  6. #6
    Eggstreme Wheelie Recognized Member Jiro's Avatar
    Join Date
    Aug 2004
    Posts
    26,942
    Articles
    65
    Blog Entries
    1
    Contributions
    • Former Cid's Knight
    • Former Editor
    • Notable contributions to former community wiki

    Default

    Even the copypasta from notepad trick doesn't solve the problem I noticed (and then proceeded to break tables as often as I could)

    They see me rolling. They hating, patrolling.
    Trying to catch me riding dirty.


  7. #7
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    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.

  8. #8
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    So is it okay to do /body in my posts? Or just start a table and 'forget' to close it?


  9. #9
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Quote Originally Posted by Peegee View Post
    So is it okay to do /body in my posts? Or just start a table and 'forget' to close it?

    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.

  10. #10
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    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>
    Last edited by rubah; 04-19-2010 at 11:22 PM.

  11. #11
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    <div 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...
    Last edited by o_O; 04-20-2010 at 12:49 AM.

  12. #12
    Eggstreme Wheelie Recognized Member Jiro's Avatar
    Join Date
    Aug 2004
    Posts
    26,942
    Articles
    65
    Blog Entries
    1
    Contributions
    • Former Cid's Knight
    • Former Editor
    • Notable contributions to former community wiki

    Default

    There are? Man I only figured one :/

    They see me rolling. They hating, patrolling.
    Trying to catch me riding dirty.


  13. #13
    GO! use leech seed! qwertysaur's Avatar
    Join Date
    Dec 2006
    Location
    Kanto
    Posts
    11,627
    Contributions
    • Former Site Staff

    Default

    Quote Originally Posted by Jiro View Post
    There are? Man I only figured one :/
    keep experimenting. Tables are very finicky.
    Try using rowspan and colspan attributes for a lot of fun.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •