Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Turning off Cellpadding on 1 row?


Message #1 by "mik" <MIKEZCG@Y...> on Thu, 21 Nov 2002 18:39:29
> I have cellpadding set at 25 for the table, i want one row to be only 3 or 
5>  pts high.  How can i do that? should i uses hspace & vspace in each
<td> i> nstead of the cell padding ??

> M> ike

To accomplish this in a really easy way, you're going to have to use CSS
and add classes to the one TD you want to be different.

something like

table.mytable td
{padding: 25px;}

table.mytable td.special
{padding: 2px;}

or something to that effect

<table class="mytable">
<caption>My Caption</caption>
<tbody>
<tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td class="special">blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>
</tbody>
</table>

  Return to Index