great-tables
great-tables copied to clipboard
Any way to get inline tables to look right in email / outlook?
I want to be able to pass in GT tables into an outlook email and have them appear with my formatting. For now, whenever I have tried the table appears "off", for example the rows are much taller than I expect. There's just a ton of extra space everywhere. It seems like padding is being applied and a lot of my style choices are being ignored.
From researching the issue my understanding is that this is on the Outlook end, and it has driven web devs crazy. I just want to make sure there's nothing I'm missing.
I have tried just about everything, with my standard approach being to do GT.as_raw_html(inline_css=True). I have tried things like changing padding and font size to be as small as they can be. Those changes are reflected everywhere except outlook, as in the table appears how I expect in HTML and PDF.
I tried using packages like premailer and even MJML wrappers. I am ready to give up on this particular thing but just wondering if anyone has succeeded in getting it to work.
Thanks