Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css reset should not be inlined #26

Merged
merged 7 commits into from
May 27, 2018
Merged

Conversation

lkrids
Copy link
Contributor

@lkrids lkrids commented Jul 8, 2013

The css reset is styling or resetting elements that are added by email clients. These css rules shouldn't be inlined.

@lkrids
Copy link
Contributor Author

lkrids commented Oct 28, 2013

@jjb I think the #outlook and .ExternalClass are added by Outlook and Hotmail respectively when those clients render the e-mail. Unless I'm missing something the #outlook and .ExternalClass don't exist when you go to inline css, before you send the e-mail.

@jjb
Copy link

jjb commented Oct 28, 2013

@lkrids ahhh, gotcha. have a reference handy?

@lkrids
Copy link
Contributor Author

lkrids commented Oct 28, 2013

@jjb I'm just going off of the comments in the code. There are no elements in the boilerplate with #outlook or .ExternalClass.

@smeric
Copy link

smeric commented Oct 10, 2015

hi,

this pr is a bit old and i'm not sure it's still valuable... but you may find some references here :
http://templates.mailchimp.com/development/css/client-specific-styles/

thanks for your work.

@seanpowell seanpowell merged commit 8c8ebde into seanpowell:master May 27, 2018
tchalvak pushed a commit to BitLucid/Email-Boilerplate that referenced this pull request Oct 20, 2018
This reverts commit 8c8ebde, reversing
changes made to aba0d02.
@@ -225,7 +225,7 @@
<a href="http://htmlemailboilerplate.com" target ="_blank" title="Styling Links" style="color: orange; text-decoration: none;">Coloring Links appropriately</a>

<!-- Gmail/Hotmail image display fix: Gmail and Hotmail unwantedly adds in an extra space below images when using non IE browsers. This can be especially painful when you putting images on top of each other or putting back together an image you spliced for formatting reasons. Either way, you can add the 'image_fix' class to remove that space below the image. Make sure to set alignment (don't use float) on your images if you are placing them inline with text.-->
<img class="image_fix" src="full path to image" alt="Your alt text" title="Your title text" width="x" height="x" />
<img class="image_fix" src="full asdf to image" alt="Your alt text" title="Your title text" width="x" height="x" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidental edit here?

@@ -1,7 +1,7 @@
<!-- ***************************************************
********************************************************

HOW TO USE: Use these code examples as a guideline for formatting your HTML email. You may want to create your own template based on these snippets or just pick and choose the ones that fix your specific rendering issue(s). There are two main areas in the template: 1. The header (head) area of the document. You will find global styles, where indicated, to move inline. 2. The body section contains more specific fixes and guidance to use where needed in your design.
HOW TOasdf USE: Use these code examples as a guideliasdfne for formatting your HTML email. You may want to create your own template based on these snippets or just pick and choose the ones that fix your specific rendering issue(s). There are two main areas in the template: 1. The header (head) area of the document. You will find global styles, where indicated, to move inline. 2. The body section contains more specific fixes and guidance to use where needed in your design.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another accidental edit?

@@ -206,7 +206,7 @@
</head>
<body>
<!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable">
<table cellpadding="0" cellspacing="0" border="5" id="backgroundTable">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was it set to 5? There is no explanation anywhere...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants