Why valign <td> valign tag parameter stop acting after inserting a picture?

 <table width='168' border='0' cellpadding='5' cellspacing='0' style='font:bold 10px \"Arial\"; color:#375cc7; border: solid 1px #999999;'> <tr> <td height='48' valign='middle' style='border-bottom: solid 1px #999999;'>ั‚ะตั…ั‚$ั‚ะตั…ั‚</td> <td valign='middle' style='border-bottom: solid 1px #999999;'>$dollar</td> </tr> <tr> <td height='48' valign='middle'>ั‚ะตั…ั‚ <img src='http://www.iconsearch.ru/uploads/icons/siena/32x32/currency_euroblue.png'>ั‚ะตั…ั‚</td> <td valign='middle'>$euro</td> </tr> </table> 

    1 answer 1

    This is the specificity of the img tag. Add to it attribute valign = "middle"

     <table width='168' border='0' cellpadding='5' cellspacing='0' style='font:bold 10px \"Arial\"; color:#375cc7; border: solid 1px #999999;'> <tr> <td height='48' valign='middle' style='border-bottom: solid 1px #999999;'>ั‚ะตั…ั‚$ั‚ะตั…ั‚</td> <td valign='middle' style='border-bottom: solid 1px #999999;'>$dollar</td> </tr> <tr> <td height='48' valign='middle'>ั‚ะตั…ั‚ <img valign="middle" src='http://www.iconsearch.ru/uploads/icons/siena/32x32/currency_euroblue.png'>ั‚ะตั…ั‚</td> <td valign='middle'>$euro</td> </tr> </table> 
    • I dare say that the "img" tag does have the attribute "valign"? Strange it, but your code works. I added [align = 'absmiddle'] to it - I_CaR