Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2013, 10:01 PM   PM User | #1
alliv105
New Coder

 
Join Date: Jan 2013
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
alliv105 is an unknown quantity at this point
HTML & CSS in gmail

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?
alliv105 is offline   Reply With Quote
Old 01-22-2013, 02:17 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,596
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by alliv105 View Post
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 01-22-2013, 02:44 AM   PM User | #3
alliv105
New Coder

 
Join Date: Jan 2013
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
alliv105 is an unknown quantity at this point
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 ;-/
alliv105 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:49 PM.


Advertisement
Log in to turn off these ads.