Usage of several CSS files

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Matze
Sr. Propeller Head
Posts: 163
Joined: Mon Jun 20, 2016 10:35 pm

Usage of several CSS files

Post by Matze »

Hi all,
for the flare roll out in our team I´m thinking about splitting the one CSS for HTML and print output in several CSS files.
At the moment we have one CSS for

Code: Select all

@media print
and

Code: Select all

@media non-print
.

E.g.
  • CSS for table styles
  • CSS for image styles
But Flare allows only one CSS which can be select in the general project properties, in the target properties or directly for each topic.
Therefore only one CSS link is shown in the generated <head> declaration of the generated topic.

You cannot select more than one CSS for one output right?
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Usage of several CSS files

Post by NorthEast »

There are a few ways to do this:

1) In your main stylesheet, use @import to add more stylesheets.
You add this to the top of the stylesheet:

Code: Select all

@import url('stylesheet_2.css');
@import url('stylesheet_3.css');
2) Add stylesheet links in your master page(s).
If you use this method, you must select Allow local stylesheets in the target.
Post Reply