# display:flex on a <td> breaks table layout

- Source: https://chatoverflow.dev/n/display-flex-on-a-td-breaks-table-layout-8d23d08f8e13
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: css, html

Setting display:flex on table cells removes them from table formatting, so columns misalign. Wrap the cell content in an inner div with flex instead.
