Saturday, September 13, 2008

OBIEE Custom CSS Style / Class

For a long time I wondered how this part of the columnsettings works:

If you look in the OBIEE documentation you will find very little:

What they meant to say is something like this:

In the first part "Use Custom CSS Style" you can directly add CSS code like "white-space:nowrap;". For more info on CSS see

The second part is more intressting. In your s_[StyleName]\b_mozilla_4 you will find a file called "custom.css". In this file you can add your own css classes:

.MyCell { background-color: #00ff00; font-style:italic; font-weight: bold;}

See that you synchronise the file with the one in: ..\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_[StyleName]\b_mozilla_4

In the colomn properties point to your Custom Class:

Note1: Somehow the font-size of the cell is dominant over the one in the personal class....
Note2: Disable your browser cache when developing with this....(some changes might take a while to be visible.)
Note3: Altough the option is availble in the conditional format screen it doesn't seem to work there....

Till Next Time


santhi said...

I have modified my css file according to the above post.

But I want my page item/s labels should get right aligned. and drop downs should get left aligned. But this is not happenning. Please help me.

John Minkjan said...


CSS is "cascading", which means that an entry on a lower level overules a level on a higher, use the IEdeveloper toolbar or the Firefox Firebug to indentify the cell.



santhi said...

Hi ,
I coudn't install these softwares as my lead wont allow.

Except alignment Iam getting all foramattings like background color etc. why horizotal alignment only not getting affected.

forgive me if it is silly

John Minkjan said...


Could you post the CSS code your are trying to implement?



Anonymous said...

Hi, I have used this code in view.css


If I give this .class filename in for pivot table,
for section items horizontal-align is working, but pageitems it is not.

I think for page items alignments may not work