Skip to main content
June 19, 2008
Question

Can I use conditional build tags in CSS files?

  • June 19, 2008
  • 3 replies
  • 544 views
I am using RoboHelp X5.0.2 and building CHM files.

I use conditional build tags to output different Help files for the different products we have that all have similarities.
In the past I have setup the CSS file to show headers, links etc in the color scheme we use to keep the look and feel of our branding. One of the new products uses a different branding color scheme.

I was wondering if there is a way I can use conditional build tags in the CSS file so that when I build one type of help it uses header in one color and when I build another help it uses a different header color. Does anyone know how to do this? If it is not possible in my current version, is it possible in the latest version of Robohelp?
This topic has been closed for replies.

3 replies

June 20, 2008
Thanks Leon, your workaround works well...
Inspiring
June 20, 2008
Thanks Leon, your workaround works well...
Participating Frequently
June 19, 2008
No BrisTechwriter, you cannot use CBTs on a CSS file currently, but I have forwarded this feature request forward so that we can have this feature in some future release of RH :)

Regards,
Pooja
MergeThis
Inspiring
June 19, 2008
[WORKAROUND ALERT IN X502]

For .chm output, you could:

1. In the Topics pane, select all the topics (click on one topic and press Ctrl+A).
2. Right click in the highlighted area and select Properties.
3. In the Appearance tab, select the different style sheet.
4. Click Save.
5. Generate the .chm file.
6. (optional) Repeat steps 1-4 to revert to previous style sheet setting.


Good luck,
Leon