While working on applying inline CSS styling to HTML for email, I have encountered an issue where the styling partially works when sending a test email. Can anyone provide guidance on how to resolve this problem?
Steps to reproduce:
Step 1 - apply CSS styling to HTML in an inline manner (please refer to the code snippet below).
<div class=" product-items" style="max-width: 600px;">
<div class="button-div" style="margin-bottom: 45px; text-align: center;">
<a href="#" style="background: #F26E11; padding: 13px 24px 14px; box-shadow: 16px 20px 10px rgba(0, 0, 0, 0.01), 9px 12px 9px rgba(0, 0, 0, 0.05), 4px 5px 6px rgba(0, 0, 0, 0.09), 1px 1px 4px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1); border-radius: 15px; margin: auto; color:#FFF; text-decoration: none;">
<span>Complete Order</span>
<span class="arrow-icon" style="background: #F9B788; border-radius: 50%; padding: 1px 3px;">
<img src="//app.squeezely.tech/uploads/prod/personalization/63c01436e8098.png">
</span>
</a>
</div>
<table align="center" class="mcnTable product-item" border="0" cellpadding="0" cellspacing="0" width="288" style="margin-top: 10px; background: #F9F9F9; box-shadow: 9px 22px 10px rgb(51 33 42 / 2%), 5px 13px 8px rgb(51 33 42 / 5%), 2px 6px 6px rgb(51 33 42 / 9%), 1px 1px 3px rgb(51 33 42 / 10%), 0px 0px 0px rgb(51 33 42 / 10%); border-radius: 10px;">
Result:
Expected output:
https://i.sstatic.net/9SRj0.png
Actual result:
https://i.sstatic.net/VGj0F.png
Upon inspecting the Chrome console, it appears that some inline styling is being removed, particularly from the table tag.
https://i.sstatic.net/vlLvo.png
If anyone has advice on resolving this issue, please share your insights.