3 Replies Latest reply on Nov 7, 2005 8:08 PM by paul1

    Changing the background color of a portlet

      Hi,

      I developed some simple portles using the default theme. Each portlet developed with the default theme has the white background color. I tried to change it setting a new background color on the JSP pages without success. How can I do?

      Many thanks and bye,
      Giordano

        • 1. Re: Changing the background color of a portlet
          jlaskowski

          Hi,

          I haven't done it before, but if I had to do it I would definitely take a look at the default theme and change its CSS.

          Jacek

          • 2. Re: Changing the background color of a portlet

            if you take a look at how this is done in portal 2.2, it's easy to change this via the theme css with the following selectors:

            .portlet-content-center {
            background-color: #fff;
            background-repeat: repeat;
            vertical-align: top;
            font-family: Verdana, Arial, Helvetica, Sans-Serif, sans-serif;
            font-size: 12px;
            }

            .portlet-body {
            background-color: #fff;
            }

            in portal 2.0 this is a lot harder, I believe.

            • 3. Re: Changing the background color of a portlet
              paul1

              Martin is correct. All you will need to do is change the hex value from #fff (CSS shorthand for #ffffff, or "white") for those selectors, to the hex value you would like to use. For example, this would change the background to a light gray...

              .selector-name-here {background-color: #eeeeee;}

              Hope this helps...