Hey Ps2cho,
I think I know what you're getting at, and this will have to go into another disclaimer (since there is other ways to do this). Definitely the perferred way to do that stuff is through CSS but continuing with tables...
I agree with Kayson I would put an align="center" in the <table> tag. As far as the width goes I would experiment a little with fixed widths ( 300, 200, etc) and percentage widths (100%, 95%, 90%, etc.) and then resize your browser and watch what happens. Find what you like for this situation and go with it!!!
Borders that aren't touching... the pure table way would be nesting a couple of tables within a main layout table. You'd have an outside table with no border that has one table row and two table cells. Within each table cell you'd have another table consisting of one row and once cell with your picture. This <table> you definitely want width="100%".
Here's what I did...
Code:
<table width="300" [COLOR=Red]border="0" align="center" cellpadding="5"[/COLOR]>
<tr>
<td align="left" [COLOR=Red]valign="top" width="33%"[/COLOR]>
[COLOR=Red] <table width="100%" border="1">
<tr>
<td align="center">
<!-- Server Monitor (The main monitor) | START ------------------------------->
<!-- NOTE:
This first segment of code is only for the server monitor itself.
If you want to include the server usage graphs, then scroll down to
the marked code.
-->
<SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=88720">
</SCRIPT>
<!-- SERVERSPY GAME CODE END -->
</td>
</tr>
</table>[/COLOR]
</td>
<td [COLOR=Red]width="33%"[/COLOR]>
[COLOR=Red] [/COLOR]
</td>
<td align="right" [COLOR=Red]valign="top" width="33%"[/COLOR]>
[COLOR=Red] <table width="100%" border="1" >
<tr>
<td align="center">
<!-- Server Monitor (The main monitor) | START ------------------------------->
<!-- NOTE:
This first segment of code is only for the server monitor itself.
If you want to include the server usage graphs, then scroll down to
the marked code.
-->
<SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=67869">
</SCRIPT>
<!-- SERVERSPY GAME CODE END -->
</td>
</tr>
</table>[/COLOR]
</td>
</tr>
</table>
Ok so as Kayson suggested there is now an align and cellpadding attributes in the outer layout table. Align will align the table horizontally in whatever space its in. Cellpadding provides space within table cells. Since the table cells of the layout table contain our other tables that will move them apart (and they'll still have the borders from the border attribute of there respective table tags). In the first table cell (and the third) I've added a valign attribute. This aligns the cell vertically. I noticed that the bottom grew as players joined, so I aligned the tops. Also added was a percentage width for the <td> of 33% so all of the widths of the layout cells will be equal (if there content were all equal).
I also added a table cell in the middle with a non-breaking space (
). Since HTML ignores spaces, or "whitespace", this is an HTML entity that says put a space here. I did this for a wee bit more padding. There are also the nested tables but I think these are pretty straightforward.
Another "old" way to create spacing in tables was with the spacer.gif. What the spacer.gif is is simply a 1x1 blank gif (you can google it and find one). You would add them any place in the layout table you would want either vertical or horizontal spacing. Kind of like this...
Code:
<img src="img/spacer.gif" width="1" height="100" />
This would create 100 pixel vertical space.
I'm sure with this example of two nested tables you can see why developers went a different way. Imagine nesting a couple levels deep! You start to get big time bloat (the pages would load slower). Not to mention if you forgot a closing </td> somewhere You could spend a whole afternoon trying to figure out why the heck the table is doing some funky thing... with CSS you can also create borders and position the html elements. This is nice semantically (you are separating your content from presentation) as well as functionally (it can look really nice, easy to make site wide changes, have different effects for printing versus screen, etc). So some day check that when you are bored with tables!
Anyway, I'm glad I could help you!