Skip to main content
Known Participant
March 29, 2010
Question

Indenting TOC in WebHelp

  • March 29, 2010
  • 1 reply
  • 918 views

Hi, I'm using RH HTML 8 to WebHelp, and I'm wondering how I can get the TOC to indent slightly rather than being flush with the left side of the browser.

I'm using var gsMargin in whthost.js to control the vertical spacing between elements. The value for var gsIndent doesn't seem to do anything.

Thoughts?

Thanks!

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
March 29, 2010

Hi,

The variable gsIndent sets how mucht every item under a book is indented. gsMargin controls how much the paragraphs indent.

To indent the complete TOC, add a padding-left to the body element. You can add this in whtdhtml.htm or whthost.js. In whtdhtml, create a style block with BODY { padding-right: 4px; } (change the value for more or less indent).

In whthost.js, add padding-right: 4px; before the } on line 647 and 649.

Note that both files get overwritten with each output.

Greet,

Willam

This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

KJoyMcKAuthor
Known Participant
March 29, 2010

I used the whthost.js method since I already edit that file and have to replace it each time I publish. I used padding-left (you wrote right on accident) and that works fine in Internet Explorer, but doesn't do anything in Firefox. Ah, the joys of multiple browsers. Any ideas for making this work in FF as well?

Thanks!

KJoyMcKAuthor
Known Participant
March 30, 2010

I'm also finding the the gsIndent property that control indents under books in the TOC doesn't do anything in Firefox. Does anyone have a workaround for that?