• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Indenting TOC in WebHelp

New Here ,
Mar 29, 2010 Mar 29, 2010

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!

Views

819

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 29, 2010 Mar 29, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 29, 2010 Mar 29, 2010

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 30, 2010 Mar 30, 2010

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 30, 2010 Mar 30, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 10, 2012 Mar 10, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp