M-J-Robbins / get-off-the-table

Experimenting with building HTML emails without <tables>
MIT License
55 stars 13 forks source link

Adding a background image #5

Open M-J-Robbins opened 7 years ago

M-J-Robbins commented 7 years ago

Ideally we want to be able to replicate all the features of a CSS background for Outlook.

M-J-Robbins commented 7 years ago

I've made some progress here by adding an image inside an mso-element div above our main content.

<div style="mso-element-wrap:no-wrap-beside;text-align:center;mso-element-left:center;"><img src="https://blog.miguelgrinberg.com/static/images/night-sky-photography.jpg"></div>

image