COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: andy_mason_84 on 02 Sep 2015 11:00:03 AM

Title: CSS Query
Post by: andy_mason_84 on 02 Sep 2015 11:00:03 AM
Hi All,

I have changed the background of the .ml class to be blue.  .ml being the crosstab member cell.

Now when i set up drill through definition on the rows of my cross tab the hyper link comes in as blue (as expected) and it looks rubbish.

Does anyone know how i can override this in CSS?

I have tried: -

a.ml:link { ...}

.ml A:link {...}

But these haven't worked.

These have been set in GlobalReportStyles.

Cheers.


Title: Re: CSS Query
Post by: bdbits on 02 Sep 2015 11:56:14 AM
Without inspecting it with browser tools I do not know, but it may be getting overridden sometime after GlobalReportStyles. You can verify this by turning on dev tools or Firebug and inspecting your element. You should be able to see the hierarchy of CSS styles being applied.

I'd recommend putting the styles directly in the report using an HTML Item. Also recognize there are different states for links that may have different default colors. This may help.
http://www.w3schools.com/css/css_link.asp (http://www.w3schools.com/css/css_link.asp)