Usage of several CSS files

This forum is for all Flare issues related to styles, stylesheets and XML.

Usage of several CSS files

Postby Matze on Thu Mar 19, 2020 11:33 pm

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
Code: Select all
@media non-print

    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?
Propeller Head
Posts: 89
Joined: Mon Jun 20, 2016 10:35 pm

Re: Usage of several CSS files

Postby Dave Lee on Fri Mar 20, 2020 1:09 am

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.
Dave Lee
Master Propellus Maximus
Posts: 5822
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 7 guests