inline-css icon indicating copy to clipboard operation
inline-css copied to clipboard

Two New Options: applyHeightAttributes and applyCenterAttributes

Open madmanlear opened this issue 8 years ago • 5 comments

These updates are very exclusively for email development, specifically more awful clients like Outlook 2013.

  • applyHeightAttributes does exactly what applyWidthAttributes does, but with height!
  • applyCenterAttributes with check to see if margin: auto (or some variant with auto) is applied. If the element is an image, it's wrapped in a <center> element. If it's a table, the attribute align="center" is added.

madmanlear avatar May 24 '17 21:05 madmanlear

@madmanlear are there any open issues which this pull request is addressing?

jonkemp avatar May 30 '17 15:05 jonkemp

@jonkemp There aren't, though I'm happy to open some. These are just very common needs for email development that I kept running into.

madmanlear avatar May 30 '17 15:05 madmanlear

@madmanlear if you don't mind, that would be helpful. Even if it's just one.

jonkemp avatar May 30 '17 15:05 jonkemp

@jonkemp done!

madmanlear avatar May 30 '17 15:05 madmanlear

@madmanlear thanks. Can you actually split this into two pull requests, one for each feature? Tests would be good as well.

jonkemp avatar May 30 '17 15:05 jonkemp