1 Reply Latest reply on May 16, 2008 8:04 AM by Den DiMarco

    Heading style different than expected

    Den DiMarco
      When compiling my source documents to HTML help instead of Winhelp 2000, my Heading 2 text is right justified instead of left justified. In Winhelp 2000 help it is correctly left justified.

      From the Single Source HTML parameters, in my "HTML HELP formatting - Microsoft HTML Help" window I selected "External style sheet based on existing style sheet". I picked a file name AfdAdmin.css. I thought this might be controlling the Heading 2 format so I examined its contents. For what I presume is the Heading 2 definition, I saw the following text:

      H2 { margin-right:18.00pt; margin-top:6.00pt; margin-bottom:6.00pt; text-align:left; font-family:Arial; font-size:12pt; font-weight:bold; margin-top:12.00pt; margin-bottom:7.20pt; text-align:left; font-family:Verdana; font-size:15pt; color:black; font-weight:bold; margin-top:0.00pt; margin-bottom:6.00pt; text-align:right; font-family:Arial; font-size:12pt; }

      To me it appears that there are three fonts associated with Heading 2. (Why would that be?) The third font in the list indicates "text-align:right". I presume that is the problem. I can manually change that and save the css file, but after a recompile, the css file is apparently regenerated and the "text-align:right" is there again.

      How can I ensure that the Heading 2 is left justified in the HTML output?

      Den DiMarco
        • 1. Re: Heading style different than expected
          Den DiMarco Level 1
          Now that I've spent some time in the forum, I think that this probably should have been posted under Robohelp for Word.

          Anyway, to get at the style sheet to fix the problem, the answer was to import the help project into Robohelp for HTML and then modify the problem style via the menu Format > Styles > Heading 2 > Modify > Format > Paragraph > Indentation > Special. Then change Hanging to (none).

          When using Robohelp for Word, the format paragraph dialog box did not show a "special" value of hanging. It had shown "(none)".

          I suspect this is because the style sheet contains multiple definitions for this style. Next I would like to be able to safely remove the additional definitions. I'll look for a discussion about that.