<p> Tags Problem

Anyone know why creatsend automatically creates <p> tage around content you've added/edited, it creates unwanted line breaks everywhere...

Mathew Mathew, 7 years ago

The description element can contain multiple paragraphs, so you need to keep that in mind when creating your styles. Normally you would style all paragraphs inside a certain element to control how they appear.

If you just want one line, a title element would be a better choice.


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

Still a bit unlcear on my question...

My code looks like this:

<span style="font:Arial, Tahoma, sans-serif;;font-size:16px;color:#FFFFFF;line-height:19px;text-decoration:none;font-weight: bold;"><$description$></span>

The I'll upload the template and add a description in, then when i look at the code it adds this around the description i just put in <p></p>

Example:
<p>Looking for a fishing adventure targeting monster GT's without breaking the bank? Ocean Blue is offering a range of new remote locations throughout New Caledonia. Anglers now have the opportunity to fish the remote North-East and the rugged West Coasts as well as the pristine South East province! If you're after monster GT's and want to fish locations never fished until now, check out these new extreme destinations.</p>

Why does it add this, it creates unnecessary line breaks?

onque, 7 years ago

anyone know??

Mathew Mathew, 7 years ago

Sorry if I was not clear, but a description element will always have at least one paragraph in it. So you need to take that into account when styling your page.

As soon as you add content to a description element, you have a paragraph to deal with.

If you don't want more than one line, you'll want to use a title element instead.


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

I wish that this wasn't the case. It's a huge pain making repeatable content sections that have multiple single line pieces of content that need to be editable because you're only allowed to use one title element per repeater.

There really should be more tags than just description and title.

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