I am creating an html email with a few rows of table cells containing an image and a piece of dynamic content (text).
Is there a way to hide one or more cells if the dynamic content is blank to avoid displaying empty cells?
Solved! Go to Solution.
Is it truly Dynamic Content™, as in explicitly segmented content? That isn't going to be suppressible: if it's inside a <td> then the <td> itself will exist even if it's empty.
If you use Velocity to output the table (or just the <td>) however, every row and cell are under your control. Some advanced techniques here: https://nation.marketo.com/t5/Product-Blogs/Alternating-table-row-colors-in-Velocity/ba-p/243564
Is it truly Dynamic Content™, as in explicitly segmented content? That isn't going to be suppressible: if it's inside a <td> then the <td> itself will exist even if it's empty.
If you use Velocity to output the table (or just the <td>) however, every row and cell are under your control. Some advanced techniques here: https://nation.marketo.com/t5/Product-Blogs/Alternating-table-row-colors-in-Velocity/ba-p/243564