I have created a Post form, and I am adding an HTML email as an email notification for the form.
I have an issue, the email body has a large white space from the top when I inspect I found there are some <p> and <br> tags that are automatically created.
I'm attaching a screenshot which should make it more clear.
Hi Waqar,
Thank you for your help.
After following your suggested steps, I am able to remove the extra space but not completely. There are still some Extras <div>'s
on both top and bottom of the mail body.
You can further trim down the extra divs/space from the top and bottom, by removing the wrapping body, center, and div tags and directly starting from the table tag.
( screenshot: hidden link )
However, please note that Google and/or any other email program can still add some wrapping divs for its own styling and layout before and after the email's content, which can't be avoided.
( screenshot: hidden link )
Yeah. Removing body, center, and div works. However, please note that Google and/or any other email program can still add some wrapping divs for its own styling and layout before and after the email's content, which can't be avoided.
Yes, you are right there are still some <br> tags exist.
Thank you! for your help.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.