Skip to main content
November 22, 2011
Answered

How can I control spacing after images?

  • November 22, 2011
  • 1 reply
  • 1325 views

I linked a FrameMaker book with many GIFs into RoboHelp (using TCS 3). When I generated the WebHelp file, there was a lot of space between each image and the line of text after it. I checked my images and none of them had any borders or margins applied to them. I manually changed the spacing before each line (Format>Paragraph> Spacing Before) so that it would be 0 pt. When I previewed the topic, everything looked okay. However, after I generated the CHM file, the spacing was the same as it had been before. Is there a setting that overrides the manual changes I make to paragraph formatting? I only need to change the line spacing for the paragraphs that are right after images, not the line spacing for all paragraphs. Is there a way to control spacing after images?

This topic has been closed for replies.
Correct answer Matt-Tech Comm Tools

RH sees the Anchored Frame as the object, so try removing the space between the graphic and frame first. If you still have space, you likely will need to edit the CSS to allow for the graphic (could be an <IMG> tag, not sure without checking) spacing.  BTW, you'll probably need to use something besides RH's CSS editor to accomplish any advanced customization of the CSS. I use Dreamweaver or Notepad.

1 reply

Matt-Tech Comm Tools
Community Expert
Community Expert
November 22, 2011

HI Bianca,

It sounds like your anchored frames have anchors on their own paragraph. Try setting the anchor in the line above, and set the Anchored Frame properties to Below Current Line. RH will recognize the alignment within RH, so make sure to set the FM properties accordingly.

-Matt

-Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
November 22, 2011

Hi Matt,

Thanks for the quick response! I think my anchored frames are already formatted that way in FrameMaker--I have a paragraph tag for anchors (with zero indentation and spacing) and the Anchoring Position is set to Below Current Line. However, I do leave some space between the image and bottom part of the frame. This does add a little bit of extra padding, but it doesn't seem like it should create as much as it does in RoboHelp. Could the space between the image and the frame be the scoundrel, or are there any other settings I can change?

Thanks,

Blanca

Matt-Tech Comm Tools
Community Expert
Matt-Tech Comm ToolsCommunity ExpertCorrect answer
Community Expert
November 22, 2011

RH sees the Anchored Frame as the object, so try removing the space between the graphic and frame first. If you still have space, you likely will need to edit the CSS to allow for the graphic (could be an <IMG> tag, not sure without checking) spacing.  BTW, you'll probably need to use something besides RH's CSS editor to accomplish any advanced customization of the CSS. I use Dreamweaver or Notepad.

-Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant