Skip to main content
Participating Frequently
May 25, 2018
Question

Stylesheet link to new window

  • May 25, 2018
  • 2 replies
  • 1298 views

We currently have 2 authoring tools, one of which is RoboHelp HTML 2017. We create CHM files with both tools and most links open in a new window (Internet Explorer browswer). The CHM files created with RoboHelp look fine when links are opened in a new window. In the other tool, most of the formatting set in the stylesheet is gone in the new window.

Does RoboHelp somehow embed the stylesheet in the CHM so that it remembers the style when links are opened in a new window? I am trying to figure out why it works in RH and not in the other authoring tool, and then hopefully I'll be able to apply it to the other tool as well.

This topic has been closed for replies.

2 replies

Jared Hess
Legend
May 25, 2018

It sounds like the other tool isn't packaging up the .css file like RH does. RoboHelp uses Baggage Files (see that folder in Project Manger pod) to keep the .css with the .htm files in a .chm. I would imagine your other tool probably has a similar option somewhere. Out of curiosity, what is the other tool?

Peter Grainge
Community Expert
Community Expert
May 26, 2018

I don't know about the other tool but you shouldn't need to add the CSS to Baggage in RoboHelp.


See www.grainge.org for free RoboHelp and Authoring information.

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Captiv8r
Legend
May 25, 2018

Hi there

I'm assuming the other tool is being used for a different project. As such, when the new window opens, where exactly is the topic being presented? For example, is it in a folder? My thought is that perhaps there is some disconnect between where the CSS is in the structure. It's all about the linking and the topic's ability to find the CSS.

So what's the other tool? Why use two tools for this? Since RoboHelp seems to work fine and the other tool doesn't, why not use RoboHelp for both?

Cheers... Rick

Participating Frequently
May 28, 2018

When the project is published, everything is published to 1 folder on a server. The CHM is then distributed to colleagues and customers, who of course don't have access to this folder. It's not an option to put everything on a server, so we were hoping to embed the CSS in the other tool (Author-it). I have contacted their helpdesk, and according to them it is not possible to somehow attach the CSS to links that open in a new window. However, we never had problems with RH, so I'm not sure if what they are saying is correct.

JaredHess​ The CSS is not in the Baggage folder. It is part of the root in Project Files.

Jared Hess
Legend
May 29, 2018

(Irene.Meijer and Peter, you are correct that CSS isn't necessary to put in the Baggage folder. I was quickly looking at one of my projects, and saw a css in there and mistakenly assumed it was necessary. Apologies for spreading false info.)

Irene, you mentioned that links from the .chm files open in IE. From what you wrote, I'm understanding that you are clicking on link from within a .chm file generated from Author-it, but that link opens up an .htm page (on a server? Webserver?) in IE that is not getting styled with the expected .css. Yet, when you click on that same link from within a RH-generated .chm, you do see the .css in the IE page. Am I close?