Advertisement
careyah

SendGrid Custom Fonts

Dec 13th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <head>
  2. <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
  3. <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
  4.  
  5. <style>
  6. body {
  7. font-family: 'Open Sans', sans-serif;
  8. }
  9.  
  10. h1, h2, h3, h4, h5 {
  11. font-family: 'Montserrat', sans-serif;
  12. }
  13. </style>
  14. </head>
  15.  
  16.  
  17. <!-- Desktop Outlook chokes on web font references and defaults to Times New Roman, so we force a safe fallback font. -->
  18. <!--[if mso]>
  19. <style>
  20. * {
  21. font-family: sans-serif !important;
  22. }
  23. </style>
  24. <![endif]-->
  25.  
  26. <!-- All other clients get the webfont reference; some will render the font and others will silently fail to the fallbacks. More on that here: http://stylecampaign.com/blog/2015/02/webfont-support-in-email/ -->
  27. <!--[if !mso]><!-->
  28. <link href='https://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
  29. <!--<![endif]-->
  30.  
  31. <style>
  32. * {font-family: Roboto, sans-serif;}
  33. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement