开发者

CSS Vertical Alignment in HTML emails

开发者 https://www.devze.com 2022-12-11 22:00 出处:网络
As we all know, most email clients don\'t support all CSS attributes. If I want to vertically align images and text, what\'s the most compatible means of doing so?

As we all know, most email clients don't support all CSS attributes. If I want to vertically align images and text, what's the most compatible means of doing so?

Right now, I'm doing:

<img style="position:relative;top:3px;" src="http:/开发者_如何学C/url.com/img.jpg" /> <span>Words and stuff</span>

This works in some clients, but not all (particularly Gmail). Any better suggestions?


I hate to say it, but <table>. CSS position is not supported well

0

精彩评论

暂无评论...
验证码 换一张
取 消