I want to create a table, the second column (which is represented by a single cell) is put in the center of a page. I am trying to use calc() function in order to do that, however it does not work. Here is my code:
.bio {
text-align: center;
margin: 0 auto;
width: calc(100% - 200px);
}
img {
height: 200px;
}
<table cellspacing="20">
<tr>
<td>
<img src="https://placehold.it/200x200" alt="image of me">
</td>
<td class="bio">
<h1>Heading</h1>
<p>Some text</p>
</td>
</tr>
</table>
What's wrong with my code?