I've spent hours trying to trouble shoot this. I hope I'm not being blind and overlooking the obvious.
The problem: I have defined a style "Heading 1" which is not based on any other style and has the color=black. Paragraphs with the Heading 1 style get changed to white when compiled to browser based help (and also HTML Help). I have another style named"Heading 1 No Space" which is based on style Heading 1, the only difference is that there is no leading above the paragraph. When the file is compiled, paragraphs with the style "Heading 1 No Space" compile correctly. The screen shot illustrates this.
I have attached the .hmx file.
Thanks to everyone who takes a look at this.
Style with font color 'Black' changes to white upon compile
Moderators: Alexander Halser, Tim Green
- Tim Green
- Site Admin
- Posts: 23189
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Byron,
The problem is very simple: You have two Heading 1 styles, one called "Heading 1" defined as black and one called "Heading1" defined as white. The white one is used in your topic headers because that is the default style for topic headers.
The problem is the space in the name of the black version. Since spaces are not allowed in CSS style class names the name gets converted to Heading1 when it is exported to HTML and as a result you are getting the white version.
To solve this you just need to change the name of your Heading 1 style to something unique. Both Heading 01 and Heading01 would work, for example...
The problem is very simple: You have two Heading 1 styles, one called "Heading 1" defined as black and one called "Heading1" defined as white. The white one is used in your topic headers because that is the default style for topic headers.
The problem is the space in the name of the black version. Since spaces are not allowed in CSS style class names the name gets converted to Heading1 when it is exported to HTML and as a result you are getting the white version.
To solve this you just need to change the name of your Heading 1 style to something unique. Both Heading 01 and Heading01 would work, for example...
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.