...

View Full Version : HTML & CSS in gmail



alliv105
01-21-2013, 10:01 PM
I have an e-commerce site, and I'm sending HTML emails out when a person places an order, when I need to update people of orders, etc. To my surprise, I found out today that these emails (designed in HTML and using CSS inside a <style> block) look horrible in gmail.

I did some research online and so far I've found out that CSS only works inline on gmail. Since my emails have many different purposes, they all have different templates. To go back and change all of them to include inline CSS would take me a long time. Does anyone know of a workaround to force gmail to use the CSS <style> blocks instead?

VIPStephan
01-22-2013, 02:17 AM
Does anyone know of a workaround to force gmail to use the CSS <style> blocks instead?

There is no workaround, you have to obey what the developers of Gmail decided to develop. One more or less simple way is to just keep your e-mails simple, too. Most of the time there is absolutely no need for complex layouts and designs and what not.

alliv105
01-22-2013, 02:44 AM
Didn't think there was any, but worth the try. I just think writing code with inline CSS is redundant at times; hopefully gmail and hotmail will catch up with the rest of the world sooner rather than later ;-/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum