My code is as follows:
.table1 {
background-color: gray;
display: flex;
justify-content: ;
align-items: ;
height: 400px;
margin-left: 40px;
padding-left: ;
}
.table1 tr {
background-color: blue;
height: 50px;
width: 50px;
}
<table class="table1">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
I am having trouble changing the width of the "TR" element, but not the height. Why does this happen? I know that adjusting the width through padding in the parent block works, but why doesn't it work when directly modifying the TR elements like with the height?