I am facing an issue with centering a <td>
element in a row, especially when there are multiple <td>
elements in the same row. The first row's <td>
element remains fixed in the first column position and does not move to the center as desired.
Below is a snippet of my code:
<table border="1">
<tr>
<td>Problem</td>
</tr>
<tr>
<td>65</td>
<td rowspan="3" width="100px">66</td>
<td>67</td>
</tr>
<tr>
<td>75</td>
<td>77</td>
</tr>
<tr>
<td>85</td>
<td>87</td>
</tr>
<tr>
<td>85</td>
<td>86</td>
<td>87</td>
</tr>
</table>
I am seeking to have one specific <td>
element centered without any other elements within the same row, and it should match the width and height of the first column's elements. Please refer to the image for better clarity -