To create solid lines in your table design, include the following CSS rule:
border-collapse: collapse;
This will remove the spacing between cells and prevent breaks in the borders of your table.
table {
background: red;
border: 1px solid #000;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
border-collapse: collapse;
}
td {
border-bottom: 1px solid #000;
}
<table>
<tr>
<td>Row one, cell one</td>
<td>Row one, cell two</td>
</tr>
<tr>
<td>Row two, cell one</td>
<td>Row two, cell two</td>
</tr>
<tr>
<td>Row three, cell one</td>
<td>Row four, cell two</td>
</tr>
</table>
See the updated JS Fiddle demo here.
If you want to achieve curved borders in your table, you can combine:
overflow: hidden;
However, this might hide the border as well. Additionally, use:
box-shadow: inset 0 0 0 1px #000;
To mimic the border that is now hidden by the overflow property.
table {
background: red;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
border-collapse: collapse;
overflow: hidden;
box-shadow: inset 0 0 0 1px #000;
}
td {
border-bottom: 1px solid #000;
}
<table>
<tr>
<td>Row one, cell one</td>
<td>Row one, cell two</td>
</tr>
<tr>
<td>Row two, cell one</td>
<td>Row two, cell two</td>
</tr>
<tr>
<td>Row three, cell one</td>
<td>Row four, cell two</td>
</tr>
</table>
Check out the updated JS Fiddle demo here.