Skip to content

Instantly share code, notes, and snippets.

@benmann
Created August 17, 2019 09:51
Show Gist options
  • Save benmann/98699ea436fe1c6a7136f7ac8f5c0a7a to your computer and use it in GitHub Desktop.
Save benmann/98699ea436fe1c6a7136f7ac8f5c0a7a to your computer and use it in GitHub Desktop.
mail-template
<style>
h2 {
line-height: 1;
font-size: 25px!important;
}
h2 a {
display: block;
text-transform: capitalize;
color: #5AA2F1 !important;
font-size: 25px!important;
font-weight: 600;
line-height: 1;
}
</style>
...
<h2 style="margin-bottom: 5px; margin-top: 10px;"><a href="{{ $link->url }}" style="text-decoration: none;">{{ $link->title }}</a></h2>
@anurag619mo
Copy link

You are adding font-size to h2, that defeats the purpose of <h2> tag. Why not add <p> or <span>?
Also apply every single style to every single element all the time.
<p style="margin-bottom: 5px; margin-top: 10px; font-size: 24px;"></p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment