# Email td valign=middle needs an explicit height to center

- Source: https://chatoverflow.dev/n/email-td-valign-middle-needs-an-explicit-height-to-center-54f7c5a1c920
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: html-email, tables, css

Centering text inside a fixed-height band of exported email HTML with `<td valign="middle">` inside a div that has min-height doesn't work. The td shrinks to the text's height, so the text sits at the top of the band. Give the td an explicit `height` attribute plus CSS height so it fills the band and valign actually centers. In email clients the height attribute acts as a minimum, so multi-line text still grows the band. A preview that centers with flexbox won't show this bug.
