Skip to main content
Known Participant
May 14, 2021
Question

Text and number alignment issue in both numbered and non-numbered list

  • May 14, 2021
  • 5 replies
  • 563 views

Hi, 

 

I created a stylesheet and defined the styles for both numbered and non-numbered lists. The list works fine if no image (icons) are added to the text. If an image is added to the text, there is an issue with the alignment of Text and number. Please refer to the image below:

But, I dont face this problem when I use the default numbered list. 

Can anybody let me know a solution to this problem? 

 

    This topic has been closed for replies.

    5 replies

    Peter Grainge
    Community Expert
    Community Expert
    June 1, 2021

    The font itself shouldn't affect things and neither should the size. Try Layout > Margin Above with both Numbering and Content. Leave Line Height at default.

     

    If you still cannot get it right, create a new project with just one topic and try there. If that still fails, see the Contact page on my site and send the project as instructed there. Do make sure you include a link to this thread and please do not email the project direct.

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

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

    Hello.  My first time commenting here 🙂  I've enjoyed your content so far.  Recently, I stumbled across the same issue Divya is having.  Here's what I discovered > basically, this problem with inline images with numbering only seems to occur when you change the "Numbering" away from the default.  I've tried it with several different texts, and encountered the same issue.

    Here's what I did, starting with a new project as you suggested:

     

    • The above is with an inline image with all of the default style sheet settings from the original default.css file.  Next, I decided to change fonts.  Changing the List style ol.Decimal, I changed both "Numbering" and "Content" to use a different font.  This resulted in the offset as shown below:

    • Once these changes were made, I reverted back to all default fonts on my ol.Decimal style, but strangely the offsets remained.  To do further testing, I had to start another project to get to the stage where there is no offset any more.

    • Next, with another new project started, I decided just to change the "Numbering" font.  As you can see below, this introduced the offset:
    •  

    • As mentioned before, at this stage, even if i try to revert back to the default font, Robohelp seems to be "stuck" with this offset.  Again, I started another new project an only changed the Content to a new font.  I'm happy to report that the Inline text/images seems to work with no offset!  See below:
    • Just sharing all of this here in hopes it helps someone 🙂

    • Also, any idea of a workaround that might allow me to change the Numbering style without this offset.  It's not really the end of the world for me, but most companies (including my own) have their own rules regarding fonts, so it would be best if i could find a better fix for this other than my little workaround.

     

    Thanks!

    Participant
    April 24, 2024

    FYI, I've been making some other adjustments away from the "default" styles, and have noticed this offset show up again if i mess around with indents and spacing.

    Peter Grainge
    Community Expert
    Community Expert
    June 1, 2021

    What properties did you change to make it work inline?

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

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Divya VAuthor
    Known Participant
    June 1, 2021

    Hi Peter,

     

    I changed the following properties to make it work inline:

    • Font Type
    • Font Size
    • Line Height
    • Letter Spacing 
    Peter Grainge
    Community Expert
    Community Expert
    May 31, 2021

    I didn't mean that you apply inline editing. I meant that you start with the default list style and add your image to that, which works as you acknowledge. Then go into the CSS editor and change one thing and see if that breaks things.

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

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Divya VAuthor
    Known Participant
    June 1, 2021

    Hi Peter, 

     

    I understood it the wrong way then. I will try to make the required changes in the stylesheet itself and see how it works. 

    Peter Grainge
    Community Expert
    Community Expert
    May 21, 2021

    I meant change one thing at a time. I should also have said try this in a new project so the CSS is clean.

     

    1. Create a new project.
    2. Add some content in a list using default styles but no image.
    3. Add an image. Is it OK at that point?
    4. Now change just the font, not the size, just the font. Is it OK at that point.
    5. Change one thing at a time until it breaks. Then stop and post back.

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

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Divya VAuthor
    Known Participant
    May 31, 2021

    Hi Peter,

     

    I tried the solution you have mentioned and it works with the inline editing. 

    The problem is starts only when I create a style for numbering in the stylesheet. 

    What might be problem?

    Peter Grainge
    Community Expert
    Community Expert
    May 14, 2021

    Use the default list? 🙂

     

    It could be any number of things in your own list style and it's difficult to tell which setting you have applied that is causing this. Compare the two list styles, maybe in code view.

     

    If that doesn't help, the thing i would try is to duplicate the default list style and modify it until it breaks.

     

    See where that gets you and then come back. Let us know then which version of RoboHelp you are using.

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

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Divya VAuthor
    Known Participant
    May 21, 2021

    Hi Peter, 

     

    I am using Robohelp 2020.4. 

    As you had suggested, I duplicated the default list style and applied the changes to the font type and vertical spacing. Then I added an icon along with the sentence. The text-number alignment issue still exists. 

    This kind of issue never happened when I was using RH 2017.