# email/transformations/transformemailmargintoalign

module

<a id="constants">

## Constants

<a id="constant-transformEmailMarginToAlign">

### `transformEmailMarginToAlign: ExportInlineStylesTransformation`

Handle 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>...`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
