I have two tables in HTML. Both of them have the same attributes in CSS (same id). Same width, same font and so on.. But even with the same id, the headlines move to different location. This is the issue:
firstHead secondHead thirdHead
--------- ---------- ---------
data data data
firstHead secondHead thirdHead
--------- ---------- ---------
data data data
What I need, is for one of them be exactly under the other, and also the next tables I will add; all in the same line.
#ActTable {
margin-left: 24px;
width: 95%;
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
border-collapse: collapse;
text-align: left;
}
#ActTable th {
font-size: 14px;
font-weight: normal;
padding: 10px 8px;
border-bottom: 2px solid black;
}
#ActTable thead tr th {
width: 59%;
}
#ActTable td {
word-break: keep-all;
border-bottom: 1px dotted black;
padding: 6px 8px;
}
<table id="ActTable">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<table id="ActTable">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>