Skip to main content
Marc M.
Inspiring
Mar 25, 2021 10:23 AM UTC
Answered

Figure caption creates an automatic indent

Is it normal that a picture in a content is automatically indent, as soon as a figure caption is used?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Peter Grainge
    Peter GraingeCorrect answer
    Community Expert
    Mar 25, 2021 10:58 AM UTC

    You haven't said which version of RoboHelp, that does affect answers.

     

    In 2020 if you look at the topic in source view you will see something like

     

    <figure>
    <figcaption>Caption</figcaption>
    <img align="left" src="../assets/images/imagename.png" title="Caption" />
    </figure>

     

    That indent looks like the default behaviour of the figure style. See HTML figure Tag (w3schools.com)

     

    Add the following to your CSS and that will fix it.

    figure {
    margin-left: 0pt;
    }

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.

    1 reply

    Peter Grainge
    Community Expert
    Peter GraingeCommunity ExpertCorrect answer
    Community Expert
    Mar 25, 2021 10:58 AM UTC

    You haven't said which version of RoboHelp, that does affect answers.

     

    In 2020 if you look at the topic in source view you will see something like

     

    <figure>
    <figcaption>Caption</figcaption>
    <img align="left" src="../assets/images/imagename.png" title="Caption" />
    </figure>

     

    That indent looks like the default behaviour of the figure style. See HTML figure Tag (w3schools.com)

     

    Add the following to your CSS and that will fix it.

    figure {
    margin-left: 0pt;
    }

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Translate
    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.