0

I have a selectOneMenu with a styleclass.

Can someone write me how to style the items inside?

I'm trying to access them via styleclass.

I can change the stylings general by doing

.ui-selectonemenu-items-wrapper {font-size:13px;}

however it doesn't work via a styleClass which I have added to the selectOneMenu

<p:selectOneMenu styleClass="someClass"...

It wont work like this:

.someClass .ui-selectonemenu-items-wrapper {
    font-size:13px;}
Kukeltje
  • 12,223
  • 4
  • 24
  • 47
user5918
  • 13
  • 3
  • 1
    Css works on the client-side html and there is no html in your question. Effectivley it is not even an html or PrimFaces issue but most likely a pure css one the 'needs' the html. I'm inclied to vote to close this a duplicate of https://stackoverflow.com/questions/8768317/how-do-i-override-default-primefaces-css-with-custom-styles and the wrapper and working css selector is no related to a specific item, just the wrapper – Kukeltje Aug 03 '20 at 18:20
  • Your style maybe is overridden by pf one, so be more specific, try with your browser developer tool, – WoAiNii Aug 08 '20 at 10:01

0 Answers0