What replaces cellpadding, cellspacing, valign, and align in HTML5 tables?
This should solve your problem:
td {
/* <http://www.w3.org/wiki/CSS/Properties/text-align>
* left, right, center, justify, inherit
*/
text-align: center;
/* <http://www.w3.org/wiki/CSS/Properties/vertical-align>
* baseline, sub, super, top, text-top, middle,
* bottom, text-bottom, length, or a value in percentage
*/
vertical-align: top;
}
/* cellpadding */
th, td { padding: 5px; }
/* cellspacing */
table { border-collapse: separate; border-spacing: 5px; } /* cellspacing="5" */
table { border-collapse: collapse; border-spacing: 0; } /* cellspacing="0" */
/* valign */
th, td { vertical-align: top; }
/* align (center) */
table { margin: 0 auto; }
On particular table
<table style="border-collapse: separate; border-spacing: 10px;" >
<tr>
<td>Hi</td>
<td>Hello</td>
<tr/>
<tr>
<td>Hola</td>
<td>Oi!</td>
<tr/>
</table>