email/transformations/transformemailmargintoalign
module
Constants
module:email/transformations/transformemailmargintoalign~transformEmailMarginToAlignHandle margin-left and margin-right combinations for alignment of the table element. It skips elements with float style because float has higher priority for alignment.
It wraps the
<table>in a container<table>to ensure proper alignment in all email clients.Examples:
<table style="margin: auto">→<table width="100%"><tr><td align="center"><table style="...">...</table></td></tr></table><table style="margin-left: auto; width: 500px">→<table width="100%"><tr><td align="right"><table width="500"><tr><td><table style="...">...</table>...