Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

html-email

Outlook 2010 overriding font-family from Arial to Times New Roman

May 30, 2023 by Tarik

Even if you set font-family: arial to table, it still wont work. You need to specifically set the font for each td inside your table to get it right.

Categories outlook Tags html-email, outlook Leave a comment

HTML Emails: fallback for mso conditional?

May 24, 2023 by Tarik

Found a solution after much brain-wracking. Instead of this: <!–[if mso]><v:shape>…</v:shape><![endif]–> <!–[if !mso]>[fallback goes here]<![endif]–> This works very well: <!–[if mso]> <v:shape>…</v:shape> <div style=”width:0px; height:0px; overflow:hidden; display:none; visibility:hidden; mso-hide:all;”> <![endif]–> [fallback goes here] <!–[if mso]></div><![endif]–> All it does is wrap the fallback in an invisible div in MSO, and deploys the vector solution instead. Hope … Read more

Categories outlook Tags gmail, html-email, outlook, vector-graphics Leave a comment

Gmail is ignoring “display:none”

May 24, 2023 by Tarik

If style=”display:none” does not work in Gmail, put style=”display:none !important;” and it works in Gmail.

Categories html Tags css, email, html, html-email Leave a comment

Base64 encoded image is not showing in gmail

May 16, 2023 by Tarik

base64 encoded images are not well supported in email. They aren’t supported in most web email clients (including Gmail) and are completely blocked in Outlook. Apple Mail is one of the few clients that does support them, that’s why you’re able to see them there but not elsewhere. Another thing to be mindful of with … Read more

Categories html Tags base64, gmail, html, html-email Leave a comment

GMail displays plain text email instead HTML

April 27, 2023 by Tarik

Try switching the order of the parts of the message, putting the HTML part after the plain-text part. It might work :). NOTE: I cannot remember now where I read this (or if I for sure even did), but the reason switching might help is because I think the preferred part of the message may … Read more

Categories email Tags email, html-email, mime-mail Leave a comment

HTML formatted email not showing up at all in Gmail but is in other mail clients

April 7, 2023 by Tarik

I am updating my answer since it has quite a few views, and new tools are available. I am leaving my original answer for posterity. Edit * 9/19/19 You can find CSS property support by email client here: https://www.caniemail.com/ Original Answer: Gmail does not support the <style> tag. You need to use inline css for … Read more

Categories css Tags css, gmail, gmail-imap, html-email Leave a comment

Why is Gmail blocking CSS in emails?

April 3, 2023 by Tarik

Gmail doesn’t block CSS totally. It still supports inline style. Why doesnt it support style block, I’ve no idea. To have a good overview of CSS support in various webmail and email clients, here’s a good one. http://www.campaignmonitor.com/css/

Categories css Tags css, gmail, html-email Leave a comment

How can I embed SVG into HTML in an email, so that it’s visible in most/all email browsers?

March 5, 2023 by Tarik

SVG is not supported in many email clients. The best guide I’ve seen is on Style Campaign. It’s a short read that I vouch for (Anna is super smart!). TL;DR: A variety of techniques will work in iOS mail clients and (amazingly) Blackberry. But Android, Outlook, and pretty much every other desktop and webmail client … Read more

Categories html Tags html, html-email, svg Leave a comment

How to get rid of “Show trimmed content” in GMail HTML emails?

March 2, 2023 by Tarik

I’ve just encountered this problem myself, and from my investigations it seems that GMail does indeed trim the content if it is similar to the preceding emails. My solution is simply to insert the current time stamp at the end of every email: [15:02:21 29/01/2013] End of message.

Categories html Tags gmail, html, html-email Leave a comment

Remove spacing between table cells and rows

March 1, 2023 by Tarik

Add border-collapse: collapse into the style attribute value of the inner table element. You could alternatively add the attribute cellspacing=0 there, but then you would have a double border between the cells. I.e.: <table class=”main-story-image” style=”float: left; width: 180px; margin: 0 25px 25px 25px; border-collapse: collapse”>

Categories css Tags css, html-email, html-table Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa