문제

I've coded a HTML email.

I've tried setting line-height inline using pixels and percentages and gmail seems to ignore everything. Is there a way of setting this or will gmail always strip my line-height value?

psuedo-code is:

<div>
<span style="line-height: 110%">Text content</span>
</div>

Thanks

올바른 솔루션이 없습니다

다른 팁

I always use the style below to fix the line-height in Gmail.

<style>
.ExternalClass * {
line-height: 100%;
}  
</style>

Have you tried using another unit? Maybe em or just a multiplier without a unit? line-height: 2 for example doubles the value of the font-size.

Otherwise check http://24ways.org/2009/rock-solid-html-emails for more information about HTML e-mails and post us your complete code.

Set the line-height in the <div>, not the <span>. Gmail also seems to ignore it in <p> elements.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top