Skip to Content
author's profile photo
Former Member

Tree backgroundcolor


I use the htmlb control tree in my iview in a few different jsp files. I would like to configure the tree to display different background colours depending on which jsp file that is currently displayed.

In the theme editor I can only use one bgcolor. And I can't create two themes and make use of it; the role and the user are the same in both jsp files.

Is it possible to set the backgroundcolor when I'm creating the tree? Or is there another way?

Brgds// -Fred

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Apr 05, 2004 at 01:10 PM

    Try to find out the name of the css attribute that is changed in the theme editor and overwrite the style in the jsp page. Something like:

    <style type="text/css">

    .treeClass { bg-color:#FF0000; }


    If you are lucky your overwritten value is used instead of the theme default.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Ok, thanks Dagfinn

      It did unfortunately not work. Strange, I could overwrite the table for the jsp page but not the tree class.

      I solved it in another way. What I did was to change the background of the tree to nothing and then changed the background color of the table to the correct background color.

      Though I will still have this problem when it comes to changing the text color. It does not always work with black font color (forinstance on the black background).

      So, is there anyone else out there who has any good idea. Please share it!

      Brgds// -Fred