Dashboards & Visualizations
Highlighted

How To Use Two Different CSS Files For A Dashboard?

Contributor

How can I include different css files for one dashboard?

Tags (2)
0 Karma
Highlighted

Re: How To Use Two Different CSS Files For A Dashboard?

Motivator

hi vtsguerrero,
try to put this in the header of the code of your dashboard

<dashboard  stylesheet="file1.css, file2.css">
    --------
</dashboard>

try and let me know if it working

View solution in original post

Highlighted

Re: How To Use Two Different CSS Files For A Dashboard?

Contributor

Worked well, thanks a lot @gyslainlatsa !

0 Karma
Highlighted

Re: How To Use Two Different CSS Files For A Dashboard?

Champion

You can do this with a CSS import declaration.

For the sake of this example, assume that the view imports the CSS file "mystyle.css":

<form stylesheet="mystyle.css">
 ...

The mystyle.css file then includes CSS import declarations which import other files:

@import url("style1.css");
@import url("style2.css");

Note that the import declarations need to be at the top of your CSS files (before other styling statements).