ivdb Posted March 12, 2014 Share Posted March 12, 2014 (edited) I'm working on a business card. In one of the frames, I want to give the user the possibility to add a website, a facebook address and a twitter address. Everything is calculated in a rule that returns a string with all the needed information. I want to represent facebook and twitter by their graphic image by using an inline graphic. I would also like to keep the graphic and its text together if there is not anough space on a line, but I do not know how. I tried with an between the graphic image and the text, but this does not work (see attached image). I find back my image at the end of one line and the text on the next line Does someone has an idea how I could solve this? The text string that I return looks like <magnify type=text factor=90><f name="Myriad Pro"><z newsize="9"> <b>abc@a.com</b><br><z newsize="9">B-1047 Brussels - Tel. +32 2 11-12345 - Fax +32 2 11-98765<br> <z newsize="9"><b>www.website1.com - www.website2.com - <graphic file="E:\dsf_vdp_data\DAM\IMAGES\cc_fb.pdf"> MyFacebook - <graphic file="E:\dsf_vdp_data\DAM\IMAGES\cc_tw.pdf"> MyTwitter</b></magnify> Edited March 12, 2014 by ivdb Quote Link to comment Share on other sites More sharing options...
step Posted March 12, 2014 Share Posted March 12, 2014 Your code looks like you're using a non-breaking space and a space. You should take that space out: <z newsize="9"><b>www.website1.com - www.website2.com - <graphic file="E:\dsf_vdp_data\DAM\IMAGES\cc_fb.pdf"> MyFacebook - <graphic file="E:\dsf_vdp_data\DAM\IMAGES\cc_tw.pdf"> MyTwitter</b></magnify> Quote Link to comment Share on other sites More sharing options...
ivdb Posted March 12, 2014 Author Share Posted March 12, 2014 I checked everything. There is no space after Quote Link to comment Share on other sites More sharing options...
step Posted March 13, 2014 Share Posted March 13, 2014 I suppose you could use the FusionProTextMeasure tool (here's a good example) to determine if that line is too long to fit in the text box, and if it is, insert a break ('<br>') before the last inline graphic in order to keep the graphic beside the text on the next line. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.