<p> Tags Being Added To Multiline Tags

Hi there-

I have been experimenting with your email system because we have been looking for an easier way to develop eblasts for clients. I have been able to successfully take our code and put it into your system and get everything to work beautifully except for one part.

It seems that when I have a <multiline> section, a <p> tag is automatically added around my code giving me a bunch of extra spacing around my text that is unwanted. I have gone into the source and deleted this successfully, but when I have multiple <multiline> tags in one repeater, it is an impossible task.

If anyone has any suggestions on how to prevent this from happening, they would be greatly appreciated. I want to use this system badly because it would be a much better solution for our company, but without the ability to control spacing, it is an issue.

Thanks in advance.

Deanne

roshodgekiss roshodgekiss, 5 years ago

Hi Deanne, welcome to the forums! Have you tried adding CSS styles to the <head> of your code to get rid of the spacing around the <p> tags? Something like:

p { margin: 0; padding: 0; }

I generally start off with that as a 'reset', then usually add margin-bottom selectively from there. Let me know if you have any questions about this :)


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
Dmroz, 5 years ago

I tried this, but I still see the spacing issue. Do you put the margin-bottom CSS inline or in the header?

roshodgekiss roshodgekiss, 5 years ago

In the header. CSS styles are automatically inlined prior to send, so adding styles like this should work, in theory.

Could you also check that no <p> tags (or similar) are already surrounding the <multiline> tags?

If you like, you can contact our support team with campaign and account details. We'd be happy to look at your code, too.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098