# email/transformations/transformemailcolumnwidthstocells

module

<a id="constants">

## Constants

<a id="constant-transformEmailColumnWidthsToCells">

### `transformEmailColumnWidthsToCells: ExportInlineStylesTransformation`

Copies per-column widths from a `<colgroup>`'s `<col>` children onto every matching `<td>`/`<th>` cell as a `width` HTML attribute. Outlook (Microsoft Word rendering engine) and other email clients ignore `<colgroup>`/`<col>` widths, so widths must be duplicated on the cells themselves.

Skipped (transformer is a no-op on the entire table) when:

* The table has no `<colgroup>` direct child, or no `<col>` carries a width.
* Any `<col>` has `span` > 1, or any cell has `colspan`/`rowspan` > 1 (simple tables only).
* Any cell already has a `width` attribute or `width:` style — preserves user-configured layout.

---

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