Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background applied to elements rather than wrapper #2

Open
M-J-Robbins opened this issue Aug 31, 2017 · 2 comments
Open

Background applied to elements rather than wrapper #2

M-J-Robbins opened this issue Aug 31, 2017 · 2 comments

Comments

@M-J-Robbins
Copy link
Owner

The background colour is inherited onto each element rather than applying to the wrapping container. This means when margins are used the background is lost.

image

@M-J-Robbins
Copy link
Owner Author

One potential fix is to use mso-margin-alt:0 to remove the margins and apply mso-border-alt: to fake them.

The issue here is that the faux-margin would have to be the same size on all sides. Also we'd need to be aware of teh desired background colour.

@M-J-Robbins
Copy link
Owner Author

M-J-Robbins commented Aug 31, 2017

Potentially the hack I've mentioned here might help a little. But ideally we need a way for it to resize the height dependent on the content

Something like this above the content helps but the height would need to change each time

<div style="mso-element-frame-width:600px;mso-element-wrap:no-wrap-beside;text-align:center;mso-element-left:center;mso-element-frame-height:1500px;background:blue">
  &nbsp;
</div>

I've used a blue background on this additional content to make it stand out
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant