Search code examples
csshtml-tablehtml-email

Table column acting as table row


Below is the preview in chrome, just the way I want it to be. Perfect!


Preview on chrome


And this is the preview in Firefox with the bug.
Where 2nd [td] is going on to the next line.


Firefox preview

This is to be used as email signature.

To see the code, here is the live url : http://dgntesting.com/ryan/johnmarkham2/table.html
I Have tried all the ways, but still can't figure out the issue in Firefox.

Here is the code :--------------------------------------------

<table width="540" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border:0;border-spacing:0;">
    <tr>
        <td width="540" height="157" style="padding:0"><img width="540" src="http://dgntesting.com/ryan/johnmarkham2/img/logo-final.png" height="157" valign="top" style="margin:0;vertical-align:top;padding:0;"></td>
    </tr>
    <tr>
        <td style="padding:0;margin:0;border:0;" width="540">
            <table width="540" cellpadding="0" cellspacing="0" style="border-collapse: collapse;border:0;border-spacing:0;">
                <tr>
                    <td height="67" style="padding:0;border-width:0;vertical-align:top;display:inline-block;"><a href="https://www.jimsbuildinginspections.com.au/" style="padding:0;text-decoration:none;"><img src="http://dgntesting.com/ryan/johnmarkham2/img/bottom-left.png" width="368" height="67" valign="top" style="margin:0;padding:0;vertical-align:top;"></a></td>

                    <td height="67" style="padding:0;border-width:0;vertical-align:top;display:inline-block;"><a href="tel:131546" style="padding:0;text-decoration:none;"><img src="http://dgntesting.com/ryan/johnmarkham2/img/bottom-right.png" width="172" height="67" valign="top" style="margin:0;padding:0;vertical-align:top;"></a></td>
                </tr>
            </table>
        </td>
    </tr>
</table>

Your help will be very much appreciated. Thanks!


Solution

  • you need to remove the display inline-block form td.

    <td style="padding:0;margin:0;border:0;" width="540">
                                    <table width="540" cellpadding="0" cellspacing="0" style="border-collapse: collapse;border:0;border-spacing:0;">
                                        <tbody><tr>
                                            <td height="67" style="padding:0;border-width:0;vertical-align:top;"><a href="https://www.jimsbuildinginspections.com.au/" style="padding:0;text-decoration:none;"><img src="http://dgntesting.com/ryan/johnmarkham2/img/bottom-left.png" width="368" height="67" valign="top" style="margin:0;padding:0;vertical-align:top;"></a></td>
    
                                            <td height="67" style="padding:0;border-width:0;vertical-align:top;"><a href="tel:131546" style="padding:0;text-decoration:none;"><img src="http://dgntesting.com/ryan/johnmarkham2/img/bottom-right.png" width="172" height="67" valign="top" style="margin:0;padding:0;vertical-align:top;"></a></td>
                                        </tr>
                                    </tbody></table>
                                </td>