standards - Why do not all CSS rules work in HTML emails? -
why can't html emails support normal positioning , html tags.
is there specific reason simple css rules float
, background-image
not work ? can't imagine these present security issues don't have in normal emails?
i answers based on reliable sources/ references , explain fundamentals of behaviour within email clients.
why html emails not following normal web standards when comes html , css.
some general info on html emails:
here's nice article gives tips concerning html emails: the do's , don'ts of html email
my own interpretation of css problem following:
html markup language, means email program needs html parser read it.
also, know, not browsers use same rendering engine or rendering rules. browsers, same html parsers: each parser differ little bit.
and reason why float
doesn't work, because implemented html parsers email clients use, not 'good' in interpretating layouts based on float
.
i quote:
because clients gmail , outlook 2007 have poor support
float
,margin
,padding
, you’ll need usetables
framework of email.
hence recommended not use floats doesn't mean won't work. depends on email client , how supports css.
i highly recommend check out list shows css support major email clients:
the ultimate guide css in html email
and can download complete guide here: complete css guide 18 email clients
to conclude:
just websites, different email clients have different css interpretations , rules. email clients ignore specific css rules. best solution on safe side , use css (or most) email clients support.
Comments
Post a Comment