Keep end punctuation with inline icon?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Carla
Propeller Head
Posts: 27
Joined: Fri Nov 12, 2010 7:10 pm
Location: Seattle, WA

Keep end punctuation with inline icon?

Post by Carla »

Hello, I have a sentence that ends with an inline icon and then a period. The sentence is also at the end of the paragraph. In print output, the period wraps to the next line. In other words, the period is sitting there all by its lonesome on one line. I could try resizing the icon, but what's to stop the problem from reappearing in the localized versions. Is there a way that I can keep the icon and the period together? (I tried inserting a non-breaking space between them, to no avail.)

Thanks in advance.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Keep end punctuation with inline icon?

Post by LTinker68 »

You might check that your img tag doesn't have any padding or margin attributes set. If it does, perhaps create a custom img tag class that sets them to 0, or at least sets the padding-right and margin-right to 0 and apply that class to that specific image. If that doesn't work, you could try creating a span class and setting the white-space attribute to nowrap, then put that span tag around the image and the period.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Craig.Prichard
Propeller Head
Posts: 62
Joined: Sat Dec 10, 2005 8:06 pm
Location: Calgary, AB Canada

Re: Keep end punctuation with inline icon?

Post by Craig.Prichard »

Lisa's suggestions are bang on. But I'm curious: if you add a few words or remove a few words from the sentence so the icon and period will be in the middle of the page, does the period still wrap?
Post Reply