PanelGrid background color

UI Components for JSF
Post Reply
steph
Posts: 3
Joined: 13 Apr 2012, 21:24
Location: France

13 Apr 2012, 21:31

Hi,

I can't find how to customize the background color of a PanelGrid. I try with style="background-color:red", also with custom css file, and it doesn't wok.
I use PrimeFaces 3.2

Thanks for your answer
PrimeFaces 3.2, Tomcat 7

User avatar
T.dot
Expert Member
Posts: 620
Joined: 01 Feb 2012, 15:39
Location: Vienna/Austria

13 Apr 2012, 22:09

Code: Select all

.ui-panelgrid td {
    background-color: blue !important;
}

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

14 Apr 2012, 00:45

I'm surprised of so many people doing web development and *not knowing css*

steph
Posts: 3
Joined: 13 Apr 2012, 21:24
Location: France

14 Apr 2012, 08:16

Thanks for your answer.

It's working with :
.ui-panelgrid td {
background-color: blue !important;
font-weight: bold;
}

but not with :
.ui-custompanelgrid, .ui-custompanelgrid .ui-panelgrid td {
background-color: blue !important;
font-weight: bold;
}
and styleClass="ui-custompanelgrid"
But it's OK for the font weight.

I try to start a web interface for an industrial application, and I know I have to learn css (and html, jsf, ajax, ...)
PrimeFaces 3.2, Tomcat 7

steph
Posts: 3
Joined: 13 Apr 2012, 21:24
Location: France

14 Apr 2012, 08:23

I find the solution :

.ui-custompanelgrid, .ui-custompanelgrid td {
font-weight: bold;
background-color: blue !important;
}

Thnaks a lot
PrimeFaces 3.2, Tomcat 7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 65 guests