View Full Version : tables


Moonlit
07-04-2003, 10:03 PM
Is there any way I can make a table...but have the border be a background instead of just a solid color?

Also...are tables involved in layering backgrounds? I've seen sites that use several backgrounds and layer them to achieve borders within borders. How can I do that?

Alcy
07-05-2003, 01:55 AM
Depending on the type of border you want, you could put a table within a table....

<table background="BORDER.GIF" border=0 cellpadding=10 cellspacing=0>
<tr>
<td>

<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td>TEXT TEXT TEXT</td>
</tr>
</table>

</td>
</tr>
</table>


Or if you have four, separate images that would form a border....

<table border=0 cellpadding=0 cellspacing=0>

<tr>
<td colspan=3>TOP IMAGE</td>
</tr>

<tr>
<td>LEFT IMAGE</td>
<td>TEXT TEXT TEXT</td>
<td>RIGHT IMAGE</td>
</tr>

<tr>
<td colspan=3>BOTTOM IMAGE</td>
</tr>

</table>


I'm not too sure what you mean by layering backgrounds....