COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: BenziD on 04 Jun 2013 04:38:13 AM

Title: import css into globalReportStyles_10.css
Post by: BenziD on 04 Jun 2013 04:38:13 AM
My working place prefer to restrict our developpers from accessing the server,
To create global class files the developpers have access to shared folder, where they store the myStyle.css files
the GlobalReportStyles_10.css should import our CSS using @import role

while testing the idea, i didnt succseed to import my css file, even when i copied myStyle.css to GlobalReportStyles_10.css location

cognos support @import ?

Title: Re: import css into globalReportStyles_10.css
Post by: bdbits on 10 Jun 2013 10:20:29 AM
How are you referencing myStyle.css (relative, absolute URI)? Is the @import the first statement in the file? Since it must be the first line are you sure your CSS is not getting overridden by a latter rule? How are you testing it?

Personally I use regular <link> references from another server, and these work fine. I have not used @import, but I see no reason it should not work if everything is set up correctly. Also check the rendered page source. If you use Firebug or other tools, you should also be able to see where your CSS is being pulled from in the actual page. Ultimately CSS are just source that gets sent to the browser for rendering.