This content has been marked as final. Show 4 replies
I have the same problem. HTML topics look fine in Firefox with my .CSS applied. But when I generate WebHelp, Robohelp creates the _ns version and alters my styles so that the page is not displayed correctly. In my view, this is a bug and the work-around is cumbersome given the number of help systems my team supports.
I'm using Robohelp 5.1. Does anyone know if this is fixed in 6?
In the WYSIWYG editor and preview, RH will be using the ProjectName.css. When you generate the webhelp, ProjectName.css and ProjectName_ns.css are generated and on opening the help, it sniffs which browser is being used. The NS version is just tweaked to get it as close as possible to the appearance in IE.
Where you are losing me a bit is saying it is fine in Firefox BUT the webhelp created used _ns and messes with things. How are you viewing the webhelp in Firefox before the help is generated?
What specifically is get messed with? Bullets and numbering perhaps?
Also do you edit your style sheet through RoboHelp or using a style sheet editor such as TopStyle?
I created my style sheet in Notepad. (I've created quite a few style sheets, so that's faster for me.) I specifically designed the style sheet to work with both IE and Firefox. I created a test .HTM file, applied the style sheet, and opened it in both browsers. The file was displayed correctly in both. Then I created a RoboHelp project and compiled it as both HTML Help and Web Help. (The .CHM was fine, BTW.)
I can see where RoboHelp is checking to see what browser is being used, and using the _ns style sheet for anything that's not IE. However, the _NS stylesheet removes the following line from my heading formats:
For this project, we want the body text indented. The simplest way to achieve this is to define a left margin for the body, and then define a negative left margin (of the same size) for each heading. The raw HTM files look exactly as planned in either Browser, but (thanks to RoboHelp's unnecessary "tweak") the compiled Web Help looks a bit odd in Firefox.
The content is still readable, so it's something we'll just live with. However, it would be SOOOOO nice if RoboHelp would allow you to exercise some type of control over the files it generates. (I'm guessing that RoboHelp makes this change because Netscape couldn't handle negative margins? But since I'm not designing for Netscape, RoboHelp's change is a hindrance instead of a help.)
Assuming the raw "untweaked" style sheet does what you want, why not simply open the _ns version and replace the contents with your desired settings? I'm thinking if you did that on the server, as long as you are publishing it should then leave the style sheet alone if you haven't made changes to it.
Just a thought... Rick