Jump to content

HTML + CSS and mail

Joveice
Go to solution Solved by Mr_KoKa,

https://www.campaignmonitor.com/css/

 

You can see there that gmail is not supporting <style> tag in <head> nor in <body>.

Hi, so I know most webmails block external css by default, and you should use inline, but I now wonder, if I keep the CSS in the top part of the code will it work? or do you need inline?

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Mr_KoKa said:

https://www.campaignmonitor.com/css/

 

You can see there that gmail is not supporting <style> tag in <head> nor in <body>.

Damn, well I'll keep working on trying to match the inline to the normal one.

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, Joveice said:

Hi, so I know most webemails block external css by default, and you should use inline, but I now wonder, if I keep the CSS in the top part of the code will it work? or do you need inline?

Here's an example:


<head>

  <style>

   /* Normal css goes here */

   body {

   background-color: #333;

   }

  </style>

</head>

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, olback said:

Here's an example:

<head>

  <style>

   /* Normal css goes here */

   body {

   background-color: #333;

   }

  </style>

</head>

 

Yea I know but if it's not supported by all webservers I won't use it.

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Joveice said:

Yea I know but if it's not supported by all webservers I won't use it.

Not supported? Uhm...If your webserver can't handle it, please change.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, olback said:

Not supported? Uhm...If your webserver can't handle it, please change.

Webmail* Sorry.

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×