Marketo moves css to the Head

Anonymous
Not applicable

Marketo moves css to the Head

It is usually considered best practice to put any css that can't be inlined (eg. media queries, hover states etc.) into a style block inside the body tag. This is because some webmail clients (mainly Gmail) strip the everything from the head.

I just discovered that Marketo moves any style blocks within a body of an email into the Head. 

Has anyone noticed this before? any ideas for a workaround?
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: Marketo moves css to the Head

Hi Christian,

This chart does a really good job at defining css support per email client. As you can see, nearly all the major email clients now support css styles being located in the head of your html. As far as Gmail is concerned, it actually strips css from the body as well as the head, so the location of the css doesn't matter. For now, it looks like were stuck with just inline styles when it comes to gmail.