foundation-emails icon indicating copy to clipboard operation
foundation-emails copied to clipboard

background colour outside the content area

Open brilliantweb opened this issue 11 years ago • 2 comments

Hi

Seriously impressed with INK. Know just enough to know that I mustn't mess (too much) with the code.

I want a background colour down the left and right side of the email. This is so the content of the email occupies a well defined space on a desktop mail client.

I tried setting the body background colour. The problem is that the main body table cell has no padding, so the text is flush up against the edge of the background.

How can I adjust the content without breaking the super-tricky compatibility with multiple email clients?

Thanks Brendon

brilliantweb avatar Jun 10 '15 15:06 brilliantweb

Hi,

I have achieved something similar I believe to what you want. I added a class to the table cell that contains all the content called 'email-pad'. It adds 10px padding left and right and a white bg.

I experimented with wrapping everything with a simple new table, but it ends up breaking the INK code. This was my solution to stay within the INK sandbox.

See screenshot:

bg-colour-eg

freemagee avatar Aug 11 '15 09:08 freemagee

Looks like @freemagee addressed this issue (thanks!). This is pretty easy to achieve with a Sass variable in v2. However, we're no longer supporting v1. We're more than happy to merge a PR in to our v1.0.0 branch. Thanks!

tdhartwick avatar May 03 '16 00:05 tdhartwick