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,753
  • 72
  • 57
  • 129
Lacer
  • 5,668
  • 10
  • 33
  • 45
  • 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
  • 346,931
  • 104
  • 581
  • 701
0

Set display: inline-block to your image.

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445