Skip to content Skip to sidebar Skip to footer

Anyone Know What The Purpose Of Tagging A Class With *[class]

I received a file from a client today that is a template for an e-mail and in the css for the mobile version all of the class specifications were preceded with *[class] e.g. *[clas

Solution 1:

There is a yahoo fix/bug workaround that uses this technique (css classes) in html email design. There was a bug where Yahoo rendered all media queries by default, and this was the common solution.

There have been reports that Yahoo fixed the bug recently.


Solution 2:

The square brackets are attribute selectors and the '*' is a wild card, so your client is selecting every element that has the class attribute.


Post a Comment for "Anyone Know What The Purpose Of Tagging A Class With *[class]"