Currently I have a column of a data table, where a number is shown on the right side and an icon on the left side of the same cell.
However, I would like to show it in the opposite direction (number on the left, icon on the right) as shown in the image.
Next I show a fragment of the code:
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
</head>
<body>
<table>
<tr>
<td>
<div style="float: left;">
42
</div>
<div style="float: right;">
<i aria-hidden="true" class="v-icon material-icons theme--light" style="font-size: 16px; color: rgb(255, 82, 82); caret-color: rgb(255, 82, 82);">
error_outline
</i>
</div>
</td>
</tr>
<tr>
<td>
<div style="float: left;">
-326
</div>
<div style="float: right;">
<i aria-hidden="true" class="v-icon material-icons theme--light" style="font-size: 16px; color: rgb(255, 82, 82); caret-color: rgb(255, 82, 82);">
error_outline
</i>
</div>
</td>
</tr>
<tr>
<td>
<div style="float: left;">
127
</div>
</td>
</tr>
</table>
</body>
</html>
The idea is not to create another additional column to locate the icon, but within the same cell position the icon and number to give the feeling that they were divided by a line and the number aligned to the right.
I tried changing the order and the float and this is shown:
But the 42 does not show up as I hope because I want all the numbers to be aligned to the right.
I appreciate your cooperation.