Stacking table help

Hi,

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, 3 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?


Carissa
Campaign Monitor

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free