I am trying to place 2 elements inside a td
at the moment I use 2 button
but they can be any other element
Elements must be centralized
One way to do it is by creating another table
inside td
, which apparently you can't insert another tr
inside a td
.
but there are 2 problems with this
- Items are not centralized.
- It is clearly seen that it is a table within another which I do not want it to be seen.
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
align-content: center;
}
</style>
</head>
<body>
<table style="width: 100%;">
<tbody>
<tr>
<th>Month</th>
<th>Savings</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
<td><table><tr><td><Button>a</Button></td><td><Button>b</Button></td></tr></table></td>
</tr>
<tr>
</tr>
</tbody>
</table>
</body>
</html>
see if this works for you.
And for them to focus, as simple as putting ALIGN=
I understand that since you have not used classes and if on-page and on-line styles it is a table for something similar to a mailing campaign or similar, that is why I give you as an example the solution applying online styles. I hope this helps you: