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.

Join 150,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free