Background colors not showing

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
jlemon
Propeller Head
Posts: 20
Joined: Thu Nov 01, 2007 10:01 am
Location: Spokane, WA

Background colors not showing

Post by jlemon »

I am using Flare 4.2.1.

I have an HTML Help project in which I want certain "reference" topics to have a different background color than the procedural topics. The default topic background color is white. So I created a new BODY class for the reference topics, so they will have a gray background:

BODY.refWINGS
{
background-color: #d3d3d3;
}

When I apply the BODY class, the topic takes on a gray background in the Flare editor. It also looks right when I test the individual .htm files in Internet Explorer, Mozilla, and Opera web browsers.

So here's the problem: The gray topic backgrounds are NOT showing up in the Flare Preview pane OR in the actual .chm output. They all show up with the default white background. Any ideas on what I am overlooking here? Why isn't the background showing up in the .chm?

As always, your help is very much appreciated.

-John
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Background colors not showing

Post by LTinker68 »

Are you using masterpages at all?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
jlemon
Propeller Head
Posts: 20
Joined: Thu Nov 01, 2007 10:01 am
Location: Spokane, WA

Re: Background colors not showing

Post by jlemon »

Yes. One master page for my web layout.
Is the master page overriding my new body class?
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Background colors not showing

Post by KevinDAmery »

Probably. However, what you can do is create a second master page that uses the background colour you need. You can then call that master page by adding a class to the html tag in the stylesheet for each master page: this will allow you to select the class using the topic properties.

EDIT: for a full description, see this KB article:
http://kb.madcapsoftware.com/Content/Fl ... roject.htm
Until next time....
Image
Kevin Amery
Certified MAD for Flare
jlemon
Propeller Head
Posts: 20
Joined: Thu Nov 01, 2007 10:01 am
Location: Spokane, WA

Re: Background colors not showing

Post by jlemon »

Kevin,
This worked. Thanks for the link to the procedures.
Actually, about six months ago, I used this procedure with another project.
And then promptly forget I had done it...
A clear case of "use it or lose it," or perhaps more evidence of my wife's theory that I am slowly losing my marbles.
Anyway, thanks again!

-John
Post Reply