1 Reply Latest reply on May 23, 2008 12:11 PM by MergeThis

    Paragraph indenting question

    tdigiurco
      Is it possible to make the indentation of paragraph be relative to the indentation of the previous paragraph?
      We are authoring our content in Structured FrameMaker and are mapping the FM styles to Robohelp styles. In FM, we have an element/paragraph tag called BodyIndented that has context rules to define how far it is indented depending on where it appears in the structure. For example, when a BodyIndented paragraph followes a numbered step, it indents .5 inch ... but when it follows a bulleted item, it indents .75 inch.
      In WebWorks, you could set up the indentation to be relative based on the level assigned to a style.
      Can you do something similar with Robohelp styles? We would like to do this to automate as much of the online help generation as possible. There is a potential for it to become very time consuming to manually indent paragraphs.
      Any help would be greatly appreaciated.
        • 1. Re: Paragraph indenting question
          MergeThis Level 4
          You might want to look into CSS Direct Child Selectors. That is:

          OL > LI > BodyIndented {
          [your style stuff when that exact sequence appears: text below a numbered list item]
          }

          UL > LI > BodyIndented {
          [your style stuff when that exact sequence appears: text below a bulleted list item]
          }

          You could even tailor a specific class of list for this special treatment, such as

          OL.STEPS > LI > BodyIndented {
          [your style stuff when that exact sequence appears: text below a numbered list item in a STEPS class]
          }

          You would then, in the text, call <OL class="STEPS"><LI>blah, blah, blah...


          Good luck,
          Leon