Skip to main content
davidg802
Participant
Jul 9, 2018 8:48 AM UTC
Answered

Is there a way to word wrap long titles in TOC? (responsive html5 output)

Is there a way to make Robohelp 2017 word wrap long titles in the TOC of responsive html 5 output?

Long titles are not shown correctly in my output, and I have to expand the TOC column to be able to read to full title.

This topic is closed to new replies. Start a new post to keep the conversation going.
gc31Correct answer
Inspiring
Jul 9, 2018 9:46 AM UTC

Hi,

open the layout.css in Notepad. This is in the !ScreenLayout! and then Azure_Blue folder (or whatever layout you are using). You are looking for the following highlighted in the image below.

Comment the line out with // as shown below and regenerate help:

9 replies

Community Expert
Aug 30, 2022 1:50 PM UTC

Okay, for Responsive using Azure Blue or Charcoal Grey, to make this survive generating, you need to add a custom css file. Paste the following into the custom css file:

 

body.media-desktop div.toc-holder * {
	white-space: normal;
}

Then add the custom css file to your skin in Layout > User Assets.

Translate
Community Expert
Aug 29, 2022 11:32 PM UTC

Which output and skin are you using? The solution will be different depending on that answer.

Translate
Known Participant
Aug 30, 2022 12:36 PM UTC

Hello there, 

I'm using an HTML5 Output along with the Charcoal Grey Skin.

I was able to locate this in my output folder. I selected the 'Output > template > skin name > layout.css'.

Translate
Known Participant
Aug 29, 2022 5:20 PM UTC

Would anyone know where to find this for RoboHelp 2020?

Translate
Jeff_Coatsworth
Community Expert
Community Expert
Aug 29, 2022 5:30 PM UTC

Did you check in your output files for that text in the css?

Translate
Known Participant
Aug 29, 2022 6:12 PM UTC

I'm not seeing the !ScreenLayout! or layout.css specifically. I didn't know if it was worded differently for the .rhpj project type that the newer versions of RoboHelp utilize.

Translate
gc31Correct answer
Inspiring
Jul 9, 2018 9:46 AM UTC

Hi,

open the layout.css in Notepad. This is in the !ScreenLayout! and then Azure_Blue folder (or whatever layout you are using). You are looking for the following highlighted in the image below.

Comment the line out with // as shown below and regenerate help:

Translate
davidg802
davidg802Author
Participant
Jul 9, 2018 10:12 AM UTC

Thanks a lot! It worked.

Translate