Html email css selector why use them

I see a lot of html emails and they have CSS:

*[class].w320

      

Now I think I understand CSS selectors, but it doesn't make sense to me because you are not really targeting anything. Isn't that how easy it is to do it?

.w320

      

Any thoughts why they are using a selector?

+3


source to share


2 answers


In fact, using square brackets (attribute selectors) is a fix for yahoo mail.



+1


source


I know you understand selectors, but just a description of what they do:

Here is chosen all elements with a class attribute and that also are members of the w320 class

*[class].w320

      

And it just chooses all elements with class of .w320



.w320

      


You can see CSS Support for Email Clients

+1


source







All Articles