I'm having trouble with aligning a CSS arrow next to some text inside a table cell...
<td><div class="arrow-up"></div> + 1492.46</td>
My goal is to have the arrow positioned to the left of the text and centered vertically within the cell. I've attempted styling the arrow as follows...
.arrow-up {
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid black;
vertical-align: middle;
}
Despite my efforts, the arrow continues to be misplaced above the text -- https://jsfiddle.net/s8e5k3st/. Any advice on achieving the correct alignment would be greatly appreciated.