Is this possible to achieve absolute position functionality without using position attribute through css?

半腔热情 提交于 2019-12-07 04:04:12

问题


I am creating outlook email. I have created an email system. I have check in all email giants like Gmail, yahoo etc it work perfectly but suddenly when I saw same email in outlook it was shocking that outlook not supports position attribute.

Now, what I want is to achieve same functionality, I have searched on Google but not found a good source to solve issue except this platform to ask question. Please help!

Thanks in advance.

Note: I don’t want to do this by placing one div inside other. This not suits my application at all i want things to positioned with respect to corners (width/height).


回答1:


outlook does not support position:, so perhaps use a table-based solution?

check out these links;

http://msdn.microsoft.com/en-us/library/aa338201.aspx

http://www.campaignmonitor.com/css/#css-com_1




回答2:


Whether you choose to code your HTML email by yourself (my personal preference) or to use an existing template, there are two fundamental concepts to keep in mind when creating HTML email:

  • Use HTML tables to control the design layout and some presentation. You may be used to using pure CSS layouts for your web pages, but that approach just won’t hold up in an email environment.

  • Use inline CSS to control other presentation elements within your email, such as background colors and fonts.

Keeping css 1.0 standards in mind will help you a lot when it comes to outlook. For some other details click here. Have fun!



来源:https://stackoverflow.com/questions/16209305/is-this-possible-to-achieve-absolute-position-functionality-without-using-positi

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