True, that is the convention. I wonder whether anyone has gone beyond that and tried things.. Specially in HTML email designing side.
Main Topics
Browse All TopicsCan I insert a style sheet within the body tags, the reason is I do loads of email marketing and I heard the header tags are usually stripped from email browsers.
So I am thinking if I define the style sheet with in the body it will get pass that bareer, plus save LOADS of TEDIOUS work for me by not having to use Inline style sheets.
Is this a possibility, has anyone done this and is it working ?
Thanks all help and tips appreciated..
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Contrary to modern html best practices, you should design html emails with inline css and tables. Gmail ignores all external and embedded style sheets.
Here are some tips: http://www.onenw.org/toolk
Here is what Outlook 2007 supports: http://msdn.microsoft.com/
And it doesn't look much better for Outlook 2010 http://news.softpedia.com/
Also some extra resources on email HTML&CSS. Helped me a lot in the past:
- http://articles.sitepoint.
- http://www.campaignmonitor
On a sidenote, I totally agree with gwkg regarding the use of embedded and linked stylesheets for HTML emails. Not only google, but (not sure about now) most webmails tend to remove the <link> and <style> and <script> tags for obvious security reasons.
On a sidenote, as frustrating as it may seem, using inline CSS doesn't have to be hard to use if you're using some sort of serverside scripting problem to render the email HTML document. One thing I experimented a few months ago and worked like a charm:
-using the serverside scripting language (PHP in my case), I chose to declare some string-like variables with proper naming, i.e. $css_header, $css_header_logo, and so on.
-in the actual HTML output, instead of spitting out endless walls of CSS code, you just echo the previously defined variable like this: style=\"{$css_header}\"
-one downside to this approach: it's a pain to try and use CSS selectors. On the other hand, that's a general problem when using inline styling anyway.
Hope this extra tip works in case you use some serverside scripting program
Business Accounts
Answer for Membership
by: BazzeFTWPosted on 2009-10-28 at 03:41:00ID: 25681642
Some browser might allow it but according to w3 it goes just inside the head tag, and nowhere else (http://www.w3.org/TR/html 401/presen t/styles.h tml#edef-S TYLE).
"HTML permits any number of STYLE elements in the HEAD section of a document."