I attempted to display 2 tables inline by setting their display property to inline, but unfortunately, it did not work as expected.
Is there a more straightforward way to achieve the desired inline display for these tables?
table {
display: inline;
}
table, td, th {
border: 1px solid black;
}
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>