joomlamailer.com

Padding for images in articles in newsletters?

Padding for images in articles in newsletters?

joomlamailer version: latest
Joomla! version: 1.5.25
PHP version: 5.3
MySQL version:5x

Hi - I'm trying to add styling for images that appear in content items, so that text doesn't sit right against the images. 
So you guys have any ideas how to give images in articles (in the newsletter) padding? 
The images wrapped in a caption div.  So I figured I could just add:

.jce_caption {padding:10px} to the styles portion of the template.  No go.

So I next I tried:

.jce_caption { margin:10px;border: 10px solid #ffffff;}
(i figured if the margin go stripped out by gmail that maybe border would work)

Still nothing.  How the hell can I give the images some breathing room?

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Padding for images in articles in newsletters?

Also, im noticing that individual paragraphs in an item are stripped out and all placed inside one master paragraph.  Is this necessary?  Can this be disabled?  For the sake of readability it is nice to have the paragraph breaks.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Padding for images in articles in newsletters?

Ok, one last thing.  I read that google will only use inline styles,

So ok, I setup a rereplacer rule to change all of my captions to include inline padding.  This is what the code looks like on the site...

<span class="jce_caption" style="border-color: #000000; padding: 0 10px 10px 0; float: left; display: inline-block;"><img style="margin: auto;" alt="2-a" src="http://newtechinsight.techinsight.netdna-cdn.com/images/stories/issue_20/2-a.jpg" height="201" width="250"><span style="padding: 10px; width: 230px; display: block;">Server Building Blocks. When Intel launched its Xeon E3-series processors, its EPSD group quickly populated the ecosystem with boards, add-in cards, and chassis to support the CPU.</span></span>

However, this is what it looks like in your component in the html view.  What happens to the padding?  This is before it is even sent so its not google stripping the code, it has to be the component?

<span class="jce_caption" style="border-color: #000000; float: left; display: inline-block;"><img style="margin: auto;" alt="3-a" src="http://www.techinsight.tv/images/stories/issue_20/3-a.jpg" height="201" width="250" /><span style="padding: 3px; width: 244px; display: block;">Just The Right Size. Standardized motherboards in specialized form-factors make for unique channel offerings. This all-in-one chassis from Gigabyte hosts Intel’s DH61AG platform.</span></span>

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Padding for images in articles in newsletters?

ok, duh it wont work that way because the component isnt grabbing the output of the site, its getting the info in the database.  So rereplacer rules wont work.  GRRR what a pain in the ass.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Padding for images in articles in newsletters?

Wow, I love the quality of the reponses I get from you guys.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Padding for images in articles in newsletters?

For the love of god would someone please respond to this post... I tried styling INLINE
margin, padding and border of the caption and all are being removed by the joomailer component.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Padding for images in articles in newsletters?

OK, before I screwed with this for two days it would have been nice to know that it only imports your article content once when you make a new campaign, its not dynamic... so if you change your inline styles it doesn't change in the component preview or actual newsletter dynamically, you either have to re-save the campaign or create a new campaign before your changes show up!

Administrator has disabled public posting. Please login or register in order to proceed.