Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table borders help

Status
Not open for further replies.

Scoobyworld

Technical User
Mar 24, 2002
22
GB
Hi folks

not posted on here for a while - been way too busy!

Anyway, I'm trying to clean up the borders to my tables on this page and cant seem to do it in Dreamweaver - either the table borders (set at value 1) are too chunky or using light and dark shades (as is on the page at present) it doesnt look right. All I want is a fine line around each table - any ideas?

thanks

Neil
 
a small example:

<html>
<table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; bgcolor=&quot;black&quot;

width=&quot;100&quot;>
<tr>
<td>
<table cellspacing=&quot;1&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100&quot;>
<tr align='center' bgcolor=&quot;white&quot;><td>asd</td><td>asd1</td></tr>
</table>
</td>
</tr>
</table>
</html>

Known is handfull, Unknown is worldfull
 
a small example:
Code:
<html>
<table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; bgcolor=&quot;black&quot; 

width=&quot;100&quot;>
<tr>
<td>
<table cellspacing=&quot;1&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100&quot;>
<tr align='center' bgcolor=&quot;white&quot;><td>asd</td><td>asd1</td></tr>
</table>
</td>
</tr>
</table>
</html>

Known is handfull, Unknown is worldfull
 
or by dimentions:
Code:
=============outside table ===============
:background black
: 100x100 px
   --------inside table centered--------
         :background white
        : 98 x 98 px
   -------------------------------------
==========================================
&quot;nested tables&quot;
All the best!

> need more info?
:: don't click HERE ::
 
Try: Outside table 100px by 100px with a 1px cell padding (or whatever size you want your border) and a colored bg. Place another table inside that table of the same dimensions and make the bg color white.

Hope this helps!!
 
U better make this thing work ...LOL

> need more info?
:: don't click HERE ::
 
Why dont you just use CSS to make your borders?

Code:
<td style=&quot;border: solid 1px border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
	border-left-color: #CCCCCC;&quot;> dkfajdkasf </td>

And fix accordingly for any &quot;adjacent&quot; cells.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top