Jump to content

how to keep inline graphic and text together


ivdb

Recommended Posts

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>

image_break.JPG.6426311f95029bcdf509f9d5621e630b.JPG

Edited by ivdb
Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...