SparkPost / heml

HEML is an open source markup language for building responsive email.
https://heml.io
MIT License
4.33k stars 157 forks source link

Padding and Margin on body gets overwritten #79

Open MALIK-0 opened 6 years ago

MALIK-0 commented 6 years ago

Hi there,

I'm using HEML to code an email signature. While using it I found out that some of my styles get overwritten no matter what.

For example I want to set a padding of 16px on my body element which gets overwritten by 0px !important. This may be good for email newsletters which are full coded in html but in use cases like a signature you need to ensure that your signature and the rest of your text which you write in your email client line up properly without sticking to the edge of the window.

My current workaround is to set the padding for the body after I generated the html. However this means everytime I generate the html I have to do this again.

It would be nice if HEML would check for existing padding on the body element before overwriting it.

Thank you guys. Have a nice day.

Tobias