primefaces panel title background color

UI Components for JSF
Post Reply
tamizharasi
Posts: 52
Joined: 26 Jun 2011, 22:18

28 Oct 2011, 15:58

Hi,

I am having 3 panel on my page. In which I want to change only one panel tile background color.

If I put like

.ui-panel-titlebar
{


background-color: #3B73B9;
background-image: url(images/std_idm_header.png);


}

It changes all the panel background color.

Is it possible to change only one panel?

I am using primefaces 2.2 JSF 2.0 & JBOSS 4.3

User avatar
leventgny
Posts: 238
Joined: 24 May 2011, 16:49
Contact:

28 Oct 2011, 21:01

Use styleClass attribute to make your components more individual. Like;

Code: Select all

<p:panel styleClass="redColoredPanel" .. />

<p:panel styleClass="leftAlignedPanel" .. />

.redColoredPanel .ui-panel-titlebar {
   color: red;
}

.leftAlignedPanel {
   float: left;
}
PrimeFaces Team Member

tamizharasi
Posts: 52
Joined: 26 Jun 2011, 22:18

28 Oct 2011, 22:44

Wow. It is solved my issue.....Thx a lot

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests