1

I'm trying to figure out why the red background color is still showing? I'd like to make the two cells flush together so no red is displayed.

see jsfiddle - https://jsfiddle.net/7c73417b/1/

<table>
    <tr>
        <td class="imageThumbN">
            <a href=""}">
            <img src="http://s8.postimg.org/5y5wc8jqp/test1.png" width="130" height="130" border="0"></a>
        </td>
    </tr>
    <tr>
        <td class="imageLink">
            <a href="">ImagesS</a>
        </td>
    </tr>
</table>
Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
Lacer
  • 5,092
  • 6
  • 29
  • 39
  • Possible duplicate of [Mystery white space underneath image tag](http://stackoverflow.com/questions/31444891/mystery-white-space-underneath-image-tag) – Michael Benjamin Dec 02 '15 at 01:43

2 Answers2

3

Add this rule to your CSS: img { vertical-align: bottom; }

or

apply font-size: 0 to td.imageThumbN

or

apply display: block to td.imageThumbN.

DEMO

For an explanation, see my answer here: Mystery white space underneath image tag

Community
  • 1
  • 1
Michael Benjamin
  • 307,417
  • 93
  • 525
  • 644
0

Set display: inline-block to your image.

Daniel A. White
  • 181,601
  • 45
  • 354
  • 430