I'm working on an automatic email for the Shopping Cart Abandonment.
This email summarizes what was added to the shopping cart. Also, this email will show up to 9 products and we never know in advance how many products there is in a shoppig cart.

How to build an email which size will adapt to the number of products ?
It means that there are up to 9 rows of products and if there are only 3 products in the basket it will hide the other 6 rows ?
How to code it HTML/CSS ?

Thank you !