Making multiple CSS files work

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
mlezak
Propeller Head
Posts: 78
Joined: Thu Sep 30, 2010 9:40 am

Making multiple CSS files work

Post by mlezak »

I'm porting a bunch of CSS files over from Robohelp -- they start with three CSS files, so it's easier for me to keep 'em that way.

For a bunch of popup topics, I have a CSS file called popup.css. Here's my problem:

In the file list, these topics claim to point to popup.css.
In each topic, it claims to point to popup.css ( From the <head> section: <link rel="StyleSheet" href="../resources/Stylesheets/popup.css" />).

But --
If I select a bit of text in one of these topics and go to Styles>Edit, it opens my default stylesheet.
And when I generate the Help, it's picking up the default CSS (which, I might add, is NOT called "default."

Oh where oh where have I gone awry this time???!!!

I do have a file I have a Master Stylesheet set from Project Properties -- is that my problem?

Thanks much --

Miriam the frustrated.
techwriter31
Propellus Maximus
Posts: 551
Joined: Wed Mar 05, 2008 10:50 am

Re: Making multiple CSS files work

Post by techwriter31 »

Kellie
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Making multiple CSS files work

Post by NorthEast »

mlezak wrote:I do have a file I have a Master Stylesheet set from Project Properties -- is that my problem?
Yes, make sure you do not set a master stylesheet on either the project properties or target properties.
If you do, only the master stylesheet link will be in your output files, and your other stylesheet links are removed.
straygoat
Sr. Propeller Head
Posts: 153
Joined: Wed Apr 04, 2012 3:39 am
Location: The Midlands, UK.
Contact:

Re: Making multiple CSS files work

Post by straygoat »

Am I right in thinking that there is a sort of hierarchy to how the style sheets are applied? At the moment, I think it works like this:

If the Target has a style sheet specified, that is the style sheet the whole project will use.
If the Project has a style sheet specified, it will be used instead of any topic style sheets but not instead of a Target style sheet.
Topics that have are associated with a style sheet on an individual basis only use those style sheets if there are no style sheets for the Project or Target.

If that's the case, when would you ever want to have a style sheet for the Project? Wouldn't it just make more sense to use the Target one only?
Craig Wright
Freelance Technical Author and SEO Copywriter
Midlands, UK
http://www.straygoat-technicalauthor.co.uk
Post Reply