Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Hi,
Padding-left works for me in FF. I add a style block <style type="text/css">BODY{}</style> before the </head> tag in whtdhtml.htm. How did you add the style?
gsIndent works for me in FF. What happens if you set it to a large value like '100pt'?
Greet,
Willam
Copy link to clipboard
Copied
Hi there,
I used your solution (since I'm also having an issue w/ indenting the entire TOC) in the whtdhtml.htm file, and it worked beautifully!!
Thank you so much for posting this solution!
Regards,
TabbyW