Skip to content

Instantly share code, notes, and snippets.

View g-rohit's full-sized avatar
🎯
Focusing

G Rohit g-rohit

🎯
Focusing
View GitHub Profile
@g-rohit
g-rohit / rendering issues in html email.doc
Created June 24, 2019 18:03
The most common HTML email rendering issues
The most common HTML email rendering issues
Text not rendering at full height
If your text is not rendering at the correct height in a majority of email clients, you have probably not set a line-height on your surrounding td.
• line-height is set to 6px more than my font-size
• gives a nice amount of spacing between the text making it much easier to read and of course rendering your text correctly in all email clients
Content not aligning correctly
• because you haven’t added align=”” to your surrounding td
Yahoo align center
• Yahoo usually makes parts or the whole email align to the left
@g-rohit
g-rohit / OpenInSameWindow.html
Last active January 8, 2019 18:23
Open a page in same window
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="UTF-8" />
<title>Open page in same window</title>
</head>