Layout & the new social media buttons

Hi,

Congrats on the great new feature. We are very happy. I have one question pertaining to layout. If I place the facebook like and tweet button right next to each other in my code, how can I add some spacing between them? I tried something like <tweet style="padding-right:5px;"></tweet> but it doesn't seem to work. Tried with "margin" too.

davidaf davidaf, 5 years ago

Hi,

Thanks, we're excited about it, too! There's no class or other hook that's automatically added to the generated image code, and as you noticed, adding the style to the tags doesn't work at this time. That's a great idea, though, and I'll be sure to pass it on for a future update.

In the meantime, you'll have to create a hook in your code to add styles to the links or images; such wrap them in a <span>, or class the parent element to style them that way.


The Campaign Monitor Blog – HTML email smarts to go with your good looks
bopjo1 bopjo1, 5 years ago

Like this?: (just to be crystal clear)

<span style="margin-left:10px;"><tweet></tweet></span>

davidaf davidaf, 5 years ago

Yes, that should work just fine.


The Campaign Monitor Blog – HTML email smarts to go with your good looks

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