[SOLVED] Dock Background color of PrimeFace 2.0

UI Components for JSF
Post Reply
Tuvshin09
Posts: 93
Joined: 19 Feb 2010, 11:59

12 Mar 2010, 15:41

Is that so possible to change the Dock component background color? It's currently always in dark color.
I tried to change it with css. But it didnt work.
Code:

Code: Select all

<p:dock proximity ="60" maxWidth = "25">
<p:dockItem label="M2B" icon="/icons/m2b_iPhone.png" url="http://www.apple.com/de/iphone/" />
<p:dockItem label="MM" icon="/icons/m2b_iPhone.png" url="http://www.google.com/" />
...
</p:dock>
And my Stylesheet:

Code: Select all

.pf-dock-container-bottom
{
	background-color: white
}
Did i do anything incorrect ?
feedback pls
thanks
Last edited by Tuvshin09 on 28 Feb 2011, 16:44, edited 1 time in total.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 Mar 2010, 15:50

There is already a built-in image displayed so your color setting is not effective, try;

Code: Select all

.pf-dock-container-bottom
{
   background-image: none;
   background-color: white;
}

Tuvshin09
Posts: 93
Joined: 19 Feb 2010, 11:59

12 Mar 2010, 17:01

It works perfect. Thank you. :D :D

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 Mar 2010, 17:01

You are welcome, glad it works.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests