Announcement

Collapse
No announcement yet.

Another Tables query

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Another Tables query

    Have a look at this thread, message 2:

    http://www.thesnookerforum.com/showt...st8875post8875

    You will see that there is a large gap!

    This was not put there by me. To check that the table was running OK, I previewed the post at several intervals. I noticed that as the table got bigger, so did the gap before it.

  • #2
    This one took me by surprise too. The problem is that you've split your table up into one line per row (pressed enter after every /tr>). You've probably done that to make it neater and easier to read and write behind the scenes, but unfortunately the forum software doesn't recognise that and moves all of your line breaks up above the table.

    The only solution is to take them all out and have all of the code on one line, ugly as it is.

    This code
    HTML Code:
    <table border=1><tr><td >Player</td><td>Official rank,
    start of season</td ><td>Provis. rank, 1-yr,
    start of season</td ><td>Provis. rank, 1½yr,
    after '98 UK</td ><td>Official rank,
    end of season</td ></tr><tr><td >John Higgins</td><td>1</td ><td>1</td ><td>1</td ><td>1</td ></tr><tr><td >Stephen Hendry</td><td>2</td ><td>3</td ><td>3</td ><td>2</td ></tr><tr><td >Ronnie O'Sullivan</td><td>3</td ><td>2</td ><td>2</td ><td>4</td ></tr><tr><td >Ken Doherty</td><td>4</td ><td>5</td ><td>6</td ><td>7</td ></tr><tr><td >Mark J. Williams</td><td>5</td ><td>7</td ><td>8</td ><td>3</td ></tr><tr><td >John Parrott</td><td>6</td ><td>4</td ><td>5</td ><td>5</td ></tr><tr><td >Peter Ebdon</td><td>7</td ><td>12</td ><td>14</td ><td>13</td ></tr><tr><td >Alan McManus</td><td>8</td ><td>11</td ><td>13</td ><td>8</td ></tr><tr><td >Stephen Lee</td><td>9</td ><td>6</td ><td>4</td ><td>6</td ></tr><tr><td >Tony Drago</td><td>10</td ><td>16</td ><td>20</td ><td>20</td ></tr><tr><td >Anthony Hamilton</td><td>11</td ><td>10</td ><td>11</td ><td>10</td ></tr><tr><td >Alain Robidoux</td><td>12</td ><td>44</td ><td>40 (estimate)</td ><td>36</td ></tr><tr><td >Nigel Bond</td><td>13</td ><td>24</td ><td>22</td ><td>21</td ></tr><tr><td >Steve Davis</td><td>14</td ><td>17</td ><td>17</td ><td>15</td ></tr><tr><td >James Wattana</td><td>15</td ><td>22</td ><td>27</td ><td>22</td ></tr><tr><td >Mark King</td><td>16</td ><td>8</td ><td>15</td ><td>14</td ></tr><tr><td >------------------</td ></tr><tr><td >Jimmy White</td><td>18</td ><td>9</td ><td>12</td ><td>16</td ></tr><tr><td >Dave Harold</td><td>19</td ><td>19</td ><td>9</td ><td>17</td ></tr><tr><td >Fergal O'Brien</td><td>20</td ><td>18</td ><td>16</td ><td>11</td ></tr><tr><td >Dominic Dale</td><td>23</td ><td>14</td ><td>18</td ><td>19</td ></tr><tr><td >Paul Hunter</td><td>24</td ><td>15</td ><td>10</td ><td>12</td ></tr><tr><td >Matthew Stevens</td><td>26</td ><td>13</td ><td>7</td ><td>9</td ></tr></table>
    Gives this, non gappy result
    PlayerOfficial rank,
    start of season
    Provis. rank, 1-yr,
    start of season
    Provis. rank, 1½yr,
    after '98 UK
    Official rank,
    end of season
    John Higgins1111
    Stephen Hendry2332
    Ronnie O'Sullivan3224
    Ken Doherty4567
    Mark J. Williams5783
    John Parrott6455
    Peter Ebdon7121413
    Alan McManus811138
    Stephen Lee9646
    Tony Drago10162020
    Anthony Hamilton11101110
    Alain Robidoux124440 (estimate)36
    Nigel Bond13242221
    Steve Davis14171715
    James Wattana15222722
    Mark King1681514
    ------------------
    Jimmy White1891216
    Dave Harold1919917
    Fergal O'Brien20181611
    Dominic Dale23141819
    Paul Hunter24151012
    Matthew Stevens261379

    Comment


    • #3
      Ah Robert, you beat me to it -

      I was just grabbing some supper before I was going to answer.

      I tried building it in notepad and doing a copy/paste - but that doesn't work either:







      test celltest cell
      test celltest cell
      test celltest cell
      test celltest cell
      test celltest cell
      test celltest cell


      So it definitely needs to be one one line!

      Comment

      Working...
      X