Removing White Spacing Between Images in a Table

后端 未结 7 1751
后悔当初
后悔当初 2020-12-17 17:43

I know this has been covered before but the solutions didn\'t help me - i\'m not a programmer but i can handle basic HTML code. I am trying to send a HTML email out that has

7条回答
  •  不知归路
    2020-12-17 18:27

    Without actually having seen your code, I would guess that you're seeing spaces between your images because you have actual space between your images.

    If you have something like this...

    
    
    

    Change it to... (note there is no space between the two image tags)

    
    

    If you are placing the images within individual cells (i.e. one image per cell) then try putting the CSS of border-collapse:collapse...

    UPDATE

    As @Shadow has pointed out, neither parts of the above will make any difference.

    It appears that FireFox and Chrome deal with the image as it would text (for some reason), therefore his suggestion of table td { font-size:0px; } is IMHO the correct answer. (IE doesn't seem to be effected by the issue.)

    提交回复
    热议问题