View Full Version : Table alignment


i_love_sailors
04-27-2003, 03:32 PM
Howdy all,

I'm having some trouble with my table aligning to the top and left side of my page. There is a little bit of space (only a few pixels) between the top and the image and the left side and the image. Here is my code:

<table border="0" align="left" width="1024" height="500" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF" border="0">
<td background="runlolarunfront.jpg" border="0" valign="top">
</td>
</tr>
</table>

I don't have my domain up yet so I'm just viewing the page in IE. This will not be the only table, I have more to add.

Thanks for your help!

* kr is ti n *

kittycat
04-27-2003, 04:59 PM
To your table code, try adding style="position:absolute; top:0px; left:0px;"

i_love_sailors
04-27-2003, 06:00 PM
Should I add a DIV tag before the table codes? Adding the style="..." didn't work.

* kr is ti n *

kittycat
04-27-2003, 06:07 PM
You could, it might work then, although it should within the table.

You can also add topmargin="0" and leftmargin="0" to the body tag if you haven't already, it will get rid of any margin spaces around the page.

i_love_sailors
04-27-2003, 06:52 PM
The topmargin and leftmargin codes worked.

Thanks so much for your help!

* kr is ti n *