TKC Blog
18

The following example displays how to make a style only affect one table and not another.  The table at the top has css class of AdTable and the rows are spaced, whereas the table below does not have the class="AdTable" and is not affected.

<style type="text/css">
      table.Adtable td {
      padding-top:5px;
      margin-bottom:5px;
      }
</style>
 
<body>
 
<table class="AdTable">
      <tr><td>asdfasdf</td></tr>
      <tr><td>adsfasdf</td></tr>
      <tr><td>adsfadsf</td></tr>
</table>
 
<table>
      <tr><td>asdfasdf</td></tr>
      <tr><td>adsfasdf</td></tr>
      <tr><td>adsfadsf</td></tr>
</table>
 
Search Blog