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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about table border

Status
Not open for further replies.

kippie

Technical User
Nov 8, 2001
158
In the html below there is a table of 2x2 with a border of 1px. Is there a way to have the border on the right hand side 0px and all other border sides 1px?

This is the HTML:<html>
<head>
<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
<title>Welcome to Adobe GoLive 4</title>
</head>
<body>
<table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bordercolor=&quot;#f74949&quot;>
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>c</td>
<td>d</td>
</tr>
</table>

</body>
</html>

 
You would need nested tables for this. Something like:


<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bordercolor=&quot;#f74949&quot;>
<tr>
<td>a</td>
<td>b</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bordercolor=&quot;#f74949&quot;>
<tr>
<td>c</td>
<td>d</td>
</tr>
</table>
</td>
</tr>
</table>

Maybe not exactly, but you get the idea. Have one main table that holds 2 seperate tables, one with a border and one without.


Hope This Helps!

Ecobb
- I hate computers!
 
You could use the border-right and border-left property in CSS instead of nesting tables

MrBelfry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top