Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Line-height-rule Outlook

(0) ShareShare
ReportReport
Posted on by 272

Hi,

Anyone an idea how to solve this issue:

1. My Line-height rule isn't respected in Outlook. Not in <p>, not in <h1> . Text is collapsed ata all. 

pastedimage1648738590577v2.png 

2. I have this extra space all over. How can I remove that white space above my text? 

pastedimage1648738467609v1.png
I use the following css style

 h1 {

            font-size: 55px;
            font-family: Times New Romanserif;
            letter-spacing: -4px;
             line-height: 75%;
            line-height: 0.75;
            mso-line-height-rule: exactly;
}
  • ElineB Profile Picture
    ElineB 272 on at
    RE: Line-height-rule Outlook

    Hi Nya,

    Thanks for your reply. 


    I solved it already in the morning, but it was solved by only using 

        mso-line-height-rule: exactly;

    line-height: 75%;

    The other point is behaviour in my template I think, quite strange, but for now it is working fine. I am sorry I cannot share the whole template here. 

     

  • Verified answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: Line-height-rule Outlook

    Hi Eline,

    For the question 1, if it only occurs in Outlook, please refer to the following post to adjust your code.

    css - Text in Outlook doesn't use line-height - Stack Overflow

    For the question 2, I copied your code snippets for the body and css but it just shows normally without the with space.

    pastedimage1649059851581v1.png

    Maybe you can paste the whole HTML of the email so I can reproduce it.

  • ElineB Profile Picture
    ElineB 272 on at
    RE: Line-height-rule Outlook

    Text A?
    xxxxxxxx
    xxxxx!

    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans