css - problems with negative margin in mail template

天大地大妈咪最大 提交于 2019-12-19 02:53:13

问题


I'm creating a html mail template, I used a ribbon so I need to a move it a little bit past border. you can see the code here: http://jsfiddle.net/GEqk7/

To do this first i used position: relative; and I gave the ribbons a negative position but the thing is that position is not well supported by gmail and yahoo and ... . So I decided to use negative margin but it looks like gmail and yahoo don't support that either.

is there a way or a fallback to to do this?


回答1:


Most of the Email clients dont support negative margin. You will have to take that ribbon image as a background.




回答2:


As of Jan. 2015, gmail's web client ignores negative margin.



来源:https://stackoverflow.com/questions/19714738/css-problems-with-negative-margin-in-mail-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!