Currently, I am in the process of developing an HTML table where I would like to incorporate a square box around each td element using CSS
<tr>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"><?php echo $program["series_title"]; ?></td>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"><?php echo $program["episode_title"]; ?></td>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"><?php echo $program["description"]; ?></td>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"><?php echo $program["series_title_fr"]; ?></td>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"><?php echo $program["episode_title_fr"]; ?></td>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"><?php echo $program["description_fr"]; ?></td>
<td style="width:8%; text-align:center; border: 1px solid #000; margin-left: 30px;"> <?php echo basename($file, ".mp4"); ?></td>
</tr>
The aforementioned HTML/PHP code showcases the table/td elements displayed as follows:
https://i.sstatic.net/DgKBM.png
Issue at Hand:
I am seeking ways to modify the inline CSS code above in order to create a small square box (as illustrated below) around each td element containing text with CSS. Currently, as depicted in the image provided above, it is generating a larger square box than desired