Stacking table help


When designing for clients that dynamically pull in products in their emails using java, I normally have tables aligned to the left so that they can stack, however I was wondering if there was a way to set media queries in the css so that if there is only one table to have it aligned to the centre, however still have tables align to the left if there is more than one.

Hope this makes sense, thank you in advance :D

Carissa Carissa, 2 years ago

Hi! Are you referring to the 2-to-1 column layout? If so, a single table should already span the full width on small screens, meaning it wouldn't need to be centered with additional @media queries. Would you mind showing us the code you are working with?

Campaign Monitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free