Can’t get rid of padding/margin in confirmation email template
-
I am working on the confirmation email template with the WordPress Admin > MailPoet > Emails section
The brand design that I need to implement for the client features a pastel green 2px border running down either side of the page of their communications and 20px in from the edge of the page.
I have managed to write some source code in the H1 elements and the Paragraph element beneath but I can seem to get rid of the margin/padding top and bottom of each element so that the borders run seamlessly down the page, even when I use the !important tag to override any other formatting.
Are you able to provide me with a solution for this?
Here is the current code for the H1 section including parameters to adjust padding and margins:<h1 style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 10px 20px !important; text-align: center; margin-top: 0 !important; margin-bottom: 0 !important;"> [site:title] </h1>
… and the paragraph code beneath:
<p style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 0px 20px; text-align: center;"><span style="color: rgb(64, 15, 63);">Hello [subscriber:firstname | default:there],</span></p> <p style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 0px 20px; text-align: center;"><span style="color: rgb(64, 15, 63);"></span></p> <p style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 0px 20px; text-align: center;"><span style="color: rgb(64, 15, 63);"> You've received this message because you subscribed to [site:title]. Please confirm your subscription to receive emails from us: </span></p>
Any assistance would be greatly appreciated for this template and future MailPoet template formatting ??
best regards
Bren
- The topic ‘Can’t get rid of padding/margin in confirmation email template’ is closed to new replies.