Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Content block, not listening to padding

(0) ShareShare
ReportReport
Posted on by 160

Hi all, 

I have created a footer where i have put code: padding: 20px 0px 0px 0px for a text. 

It looks good in the content block designer and also when it is live. But when I insert it into a marketing email the padding disappears.

I created this footer a month ago and never experienced this problem before. Neither has I changed anything in the code. How can I get my 20px space between two of the lines?

Would appriciate the help, Thanks!

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Content block, not listening to padding

    Hi Filippa,

    Would you please provide a screenshot with the exact effect which you need?

    For example, the effect in the text block.

    This makes it easier for me to understand.

    Thanks a lot.

     

    Best Regards,

    Nya

  • Filippa f Profile Picture
    Filippa f 160 on at
    RE: Content block, not listening to padding

    Hi Nya!

    Thank you, the thing is that I only want spac between two of the lines. I have 4. So 2 schould have the same line height *bigger space* then the other two with the same line height.

    It worked when I sat the padding for the text block, but now when I insert the content block it doesn't listen to:

    1.background: #F0F3F2;

    2. }

       a { text-decoration: none;

    }

    a { color: #000000; } /* CSS link color */

    So it's just a white background with the blue link color instead of staying black as i put in the code.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: Content block, not listening to padding

    Hi Filippa,

    You can adjust the line-height in HTML designer to achieve your request.

     

    div {
        line-height:20px;
    }

    Please refer to the following link to know more about it:

    CSS line-height property (w3schools.com)

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

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,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans