Forum Moderators: open

Message Too Old, No Replies

How do you left align a table?

I mean so you can put another beside it...

         

theadvocate

12:16 pm on Mar 15, 2003 (gmt 0)

10+ Year Member



Hello,

The left hand menu of one of my sites has images in it and it is slowing down the rest of the table from loading so I need to split the table into two, but I don't remember how to do it :0

When I do table align left it goes to the left, but it will not allow me to place another table to the right of it.

Can you please tell me how? I used to do it on a site of mine long ago but haven't needed the ability in a couple of years and can't remember.

Thanks!

aspdaddy

12:28 pm on Mar 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Table aligns left by default, one way is to use 3 tables like this:

<table>
<tr>
<td>
<table>
<tr>
<td>table2</td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td>table3</td>
</tr>
</table>
</td>
</tr>
</table>

theadvocate

12:36 pm on Mar 15, 2003 (gmt 0)

10+ Year Member



Hello aspdaddy,

I tried that, but table 2 and 3 are still in table one. I need them outside, not in the same table. Just side by side, that way while the left table is loading slowly the right can still load independently and give the viewer something to read while waiting on the images.

I first noticed this on Yahoo sports but they have since changed their format.

Maybe I should ask how to float a table on the page and be able to put another table beside it without them both being in the same table, just on the page?

I just went to Google to search for "floating tables" and ironically they have what I am looking for in the search results :)

If you do a search on Google you will see the "Sponsored Links" table on the right hand side. It is beside the left hand table of the search results.

That is what I am trying to do, put two tables side by side without them being inside another table so they load independently.

I will look at the Google HTML to see if I can figure it out but if someone could lend a helping hand it would be appreciated :)

Thanks!

[edited by: theadvocate at 12:46 pm (utc) on Mar. 15, 2003]

Woz

12:44 pm on Mar 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<table width="100" align="left">

should float a table left with text or other objects wrapping around it.

Onya
Woz

Alternative Future

12:48 pm on Mar 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could try the style rule {float:left;}

HTH,

-gs

theadvocate

12:50 pm on Mar 15, 2003 (gmt 0)

10+ Year Member



Woz,

That is what I was looking for. Thanks!