Hello all,
I spent quite a lot of time this weekend trying to work out what was going on with my CSS, and I'm curious to know if anyone else has had such problems.
First off, my FM project is linked to my Robohelp project, so I need to use the "Edit conversion settings for FrameMaker documents" to map my FM styles to the styles in my stylesheet. However, I don't think my issue is a FrameMaker integration issue.
Anyway, my stylesheet was not affecting my output as expected, and I made doubly-sure that the correct stylesheet was associated with my topics, so that isn't the issue.
First thing I found strange was that when I opened the RhStyleMapping.css file for a brand new project, the first line indicates "Created with Robohelp 8" - I am using RH9, so shouldn't is say Robohelp 9? Anyway, that aside.
When I map styles using the Robohelp CSS editor, my headings in the editor are named Heading 1, Heading 2, Heading 3, Heading 4 and so on. But when I open the stylesheet in Notepad, they are called h1, h2, h3, h4 etc.
Anyway I didn't notice this at first, and I edited my CSS in Notepad to set the style for a grouping
h1,h2,h3,h4,h6 {
color: #ff0000;
{
This is when things started to go very wrong. When I went back into the Robohelp editor, my grouping appeared, but wasn't taking effect anywhere. The reason why I set the color field in Notepad instead of the CSS is because when you create a custom colour, the stylesheet sets the color to the name you indicated, for example
color: "Company specific red"
but nowhere in the stylesheet was there a definition for this "Company specific red", so the color didn't "take" (I guess this is a separate issue, but still).
Is it not possible to use both Notepad and the Robohelp CSS editor to edit the same style sheet (Not at the same time though)? At first it seemed to be working all right, and I'm pretty sure this was shown in one of the on-demand seminars (for linking RH and FM), but when I follow the same steps, my stylesheet tends to get "corrupted" and not respond (ie the styles I set don't make it into the output).
I think I have fixed my problem by creating new styles in the RH editor called h1, h2, h3, h4, etc, and I won't use the Heading 1, Heading 2, etc styles anywhere, but I'm curious to know if anyone has run into strange problems with stylesheets getting overwritten mysteriously.
thanks.
Sue