Home How to align image flush with text

# How to align image flush with text

John Auer
1#
John Auer Published in 2017-12-07 22:37:37Z
 I'm trying to place icon next to text using span but the images are not flush with the text that is beside them. They are moved up. I'm wondering if anyone knows why it is displayed this way and how to fix it. Thanks you. 
Cart |0items

j08691
2#
 Because the default vertical alignment for inline elements is baseline. Set the alignment on your images to middle> Also be sure to remove any white space in your code that would be between those elements as browsers are sensitive to it: img { vertical-align: middle; }  img { vertical-align: middle; }