[solved] Onemenu style

Locked
fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

12 Sep 2016, 17:10

Friends, I want to make the background of a yellowing onemenu, then tried to put:

Code: Select all

<p:selectOneMenu style="background-color: khaki !important;">
But I will not, I tried also:

Code: Select all

<style>
.meucss {
background-color: khaki !important;
}
</style>

Code: Select all

<p:selectOneMenu styleClass="meucss">
but also does not work, only works if I do a:

Code: Select all

<style>
.ui-selectonemenu .ui-selectonemenu-label {
background-color: khaki !important;
}
</style>
But there all one menu page are with yellowing background.
Some charitable friend can help me?
Last edited by fredwilliam on 23 Sep 2016, 22:06, edited 1 time in total.

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

19 Sep 2016, 04:52

Aragorn, help me. please.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

19 Sep 2016, 10:37

Hi,

I think you can try the following css;

Code: Select all

//CSS
.meucss.ui-selectonemenu .ui-selectonemenu-label {
    background-color: khaki;
}

//XHTML
<p:selectOneMenu styleClass="meucss">

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

23 Sep 2016, 22:05

aragorn wrote:Hi,

I think you can try the following css;

Code: Select all

//CSS
.meucss.ui-selectonemenu .ui-selectonemenu-label {
    background-color: khaki;
}

//XHTML
<p:selectOneMenu styleClass="meucss">

it worked perfect

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

25 Sep 2016, 21:30

Glad to hear, thanks!

Locked

Return to “Sentinel”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests