I can't seem to get an image centered when floated to the right of text within a table th.
It looks right in the example here, so it probably has something to do with my site's css, but I can't figure out how to vertically align the text and the image.
Here's a screenshot of how it looks for me: https://www.dropbox.com/s/alejui9bchad4r0/Screen%20Shot%202020-02-06%20at%2011.37.28%20PM.png?dl=0
#sortedTable table {
border-spacing: 0;
width: 100%;
}
#sortedTable th {
cursor: pointer;
color: #fff;
background-color: #1b1b1b;
border: 0;
}
#sortedTable th, #sortedTable td {
text-align: left;
padding: 16px;
}
#sortedTable img{
float: right;
vertical-align: middle;
}
<table id="sortedTable" class="table-full-width">
<tr>
<th onclick="sortTable(0)">Item 1 <img src="https://cigardojo.com/wp-content/uploads/2020/02/up-down-arrows.png" alt="Up Down Sorting Arrows" width="9" height="13" class="alignnone wp-image-52355" /></th>
<th onclick="sortTable(1)">Item 2</th>
<th onclick="sortTable(2)">Item 3</th>
</tr>
<tr><td>bla bla bla bla</td></tr>
</table>