Are elements required in the CSS selector?

Looking at the CSS selectors in the documentation the two common ones look like:


Is the `E` a requirement to ensure it works consistently or is that just for demonstration? So it's the difference between:

.classname { ... }


td.classname { ... }

paulw paulw, 3 years ago

Hey Chris,

Thanks for posting in the forum! The 'E' included in the CSS guide is there just for demonstration. The class will work in the email programs mentioned in the guide, when not including a type selector.

You can use the following selector and it will work okay in a number of email programs.

.classname { ... }

Thanks again Chris!

The Campaign Monitor Blog – HTML email smarts to go with your good looks.

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free