To align the entire table to the right, wrap it in a div, give the table a width, and use flexbox to align the items to the right:
.parentDiv{display:flex; justify-content: flex-end;}
DEMO 1
.flexparent{display:flex;justify-content:flex-end;}
table{width:60vw;border-collapse:collapse;}
th{border:1px solid red;}
td{border:1px solid green;}
<div class="flexparent">
<table>
<tr>
<th>Drop No.</th>
<th>Route Name/Destination</th>
</tr>
<tr>
<td class="route-number">17</td>
<td class="route-name">Paddington Station</td>
<tr>
</table>
</div>
To style the cell data to be right-aligned, use CSS on the th and td elements:
th, td{text-align:right;}
DEMO 2
table{width:60vw;border-collapse:collapse;border:1px solid red;}
th,td{text-align:right;}
th,td{border:1px solid green;}
<table>
<tr>
<th>Drop No.</th>
<th>Route Name/Destination</th>
</tr>
<tr>
<td class="route-number">17</td>
<td class="route-name">Paddington Station</td>
<tr>
</table>
Also note that <tr>
elements wrap both <th>
and <td>
elements, separately. Neither <tr>
nor <th>
elements go inside <td>
elements (although it is possible - but no longer good HTML - to insert an entire table into a <td>
element). Basically, your table structure should look like this:
table
tr
th
th
/tr
tr
td
td
/tr
tr
td
td
/tr
tr
td
td
/tr
/table
REFERENCES:
Flexbox Cheatsheet
EXCELLENT Flexbox Tutorial (20 min)
The best 20 mins you will spend this year is learning flexbox. There is a reason why Bootstrap changed its main version number from Bootstrap3 to Bootstrap4 when they moved from Floats to Flexbox. And it's easy!