Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2013
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    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?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,680
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    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.

  • #3
    New Coder
    Join Date
    Jan 2013
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post
    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 ;-/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •