PDA

View Full Version : Need help with a table border


Big Kahuna
04-18-2002, 03:53 PM
<a href="http://www.moparstyle.net/forums/" target="_blank">http://www.moparstyle.net/forums/</a>

I am trying very hard to learn as I go -- but this is one I can't figure out.

An administer from another board using the same server company as I, gave me a hack called g_statistics, which is the table in the above listed forum called Statistics. Promblem is that the table border is not like my other table's boders -- in each of my styles. I can't figure out how to make it the same border as the other tables. This admin and his board are gone so I can't ask him. Any suggestions?

Here is the code used in g_statistics:

<table width="100%" cellpadding="4" cellspacing="{tableinnerborderwidth}">
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="3" onMouseOver="this.style.cursor='hand';" onclick="window.location.href='vbstats.php?s=$session[sessionhash]'"><a href="vbstats.php?s=$session[sessionhash]">
<b><normalfont color={categoryfontcolor}>Statistics</normalfont></b></a></td>
</tr>
<td bgcolor={secondaltcolor} width="20%">
<smallfont><b>Top 10 Posters:</b></smallfont>
</td>
<td bgcolor={firstaltcolor} width="20%">
<smallfont><b>Top 10 This Week:</b></smallfont>
</td>
<td bgcolor={secondaltcolor} width="60%">
<smallfont><b>10 Most Recent Replies To Threads:</b></smallfont>
</td>
</tr>
<tr>
<td bgcolor={secondaltcolor} width="20%">
<table width="100%">
<tr>
<td width=100%><smallfont>User Names:</smallfont></td><td align="right"><smallfont>Posts:</smallfont></td>
</tr>
<tr>
<td width=100%><smallfont><b>$posts5name</b></smallfont></td>
<td align="right"><smallfont><b>$posts5post</b></smallfont></td>
</tr>
</table>
</td>
<td bgcolor={firstaltcolor} width="20%">
<table width="100%">
<tr>
<td width=100%><smallfont>User Names:</smallfont></td><td align="right"><smallfont>Posts:</smallfont></td>
</tr>
<tr>
<td width=100%><smallfont><b>$week5name</b></smallfont></td>
<td align="right"><smallfont><b>$week5posts</b></smallfont></td>
</tr>
</table>
</td>
<td bgcolor={secondaltcolor} width="60%">
<table width="100%">

<td width=80%><smallfont>Thread Names:</smallfont></td>
<td width=20%><smallfont>Last Posters:</smallfont></td>
<td align="right"><smallfont>Views:</smallfont></td>
</tr>
<tr>
<td width=80%><smallfont><b>$popthread</b></smallfont></td>
<td width=20%><smallfont color="#ff0000"><b>$poplastposter</b></smallfont></td>
<td align="right"><smallfont><b>$popviews</b></smallfont></td>
</tr>
</table>
<tr>
<td bgcolor="{categorybackcolor}" colspan="3" align="left" valign="center" cellpadding="4" cellspacing="{tableinnerborderwidth}">
</td>
</tr>
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="3" align="center" valign="center" cellpadding="4" cellspacing="{tableinnerborderwidth}">
<smallfont color={tableheadtextcolor}>Registered Members: <b>$numbermembers</b> | Total Threads: <b>$totalthreads</b> | Total Thread Views: <b>$totalviews</b> | Total Posts: <b>$totalposts</b> | Posts Today: <b>$poststoday</b></smallfont>
</td>
</tr>
</td>
</tr>
</table>

WEBDosser
04-18-2002, 04:16 PM
Change this
<table width="100%" cellpadding="4" cellspacing="1">

to this
<table width="100%" cellpadding="0" cellspacing="0" border="0">

maybe?..

Big Kahuna
04-18-2002, 09:59 PM
Didn't work

The border is there -- but it is white when the other tables is black. When I cahnge the borger to 1 I get a 3d border with shadow and highlight.