In my table, I want to set the space between cells only so that there is no gap between two cells between the table cell and the table itself. My HTML table is 2 columns and 2 rows, as shown below:
<table class="president-table" border="0"> <tbody> <tr> <td> some text </td> <td> <img class="alignnone" src="images/lili-239x300.jpg" width="239" height="300"></img> </td> </tr> <tr> <td> </td> <td> <img src="images/kate-240x300.jpg" width="240" height="300" /> </td> </tr> </tbody> </table>
I used the following CSS:
.president-table{ border-collapse: separate; border-spacing: 15px 0px; }
the table should look like this:
TABLE TOP
| TD TD |
| TD TD |
TABLE END
there is no space between TD and TR only between two two TDs. offers?
source share