Copy link to clipboard
Copied
I'm using the latest RH 2017, and I had an issue where, in RH's HTML5 layout, there was an odd right vertical bar that appeared under the TOC text like this:
I didn't like how this looked and wanted to remove it, but I found that I couldn't turn off this particular element inside of the usual layout UI controls that RH offers. This is my solution. I decided to share it here in case anyone else might be interested in doing something similar. (I assume this solution likely also works in the classic version of RH 2019).
It turns out that this (and many other styles) is controlled by a style that is stored inside of a stylesheet that RoboHelp provides named layout-rtl.css.
If you're using the charcoal gray HTML5 layout, for example, this file stylesheet is inside of the !ScreenLayout!\Charcoal_Grey folder in your project
(When you generate your HTML5 output, this file gets placed inside of your template\Charcoal_Gray folder, so you'll likely want to modify the one in !ScreenLayout!\Charcoal_Gray so that it gets used in all your outputs that use this same layout.)
Here's the procedure to remove this right-side vertical bar:
1. Backup your .css file.
2. Locate this code inside of the .css file:
div.toc-holder li.selected {
color: #e1e1e1;
border-right-color: #232323;
}
3. In that command block, comment out or delete this line:
border-right-color: #232323;
Here's an example of that line commented out:
div.toc-holder li.selected {
color: #e1e1e1;
/* border-right-color: #232323; */
}
(Btw, I highly recommend using the excellent and free-to-use Visual Studio Code editor.)
4. Save the .css and regenerate your project.
Here's what I did to find out where to make this change:
Maybe this will help someone else down the road.
Have something to add?