Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change font size of submenu and menu of primefaces.

 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application I have used primefaces menus everything is working fine but the mubmenu font size is very small.I can change the font size of menuitems by style attribute ( style="font-size :120%") but not in case of menu and submenu .Please help
 
Nikhil Padharia
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check which class is applied to submenus where you want to change the font-size.
And then override that class with the font-size you want.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18008
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If PrimeFaces is anything like RichFaces, it has a set of classes specifically devoted to the different types of PrimeFaces components and their sub-components. Check the PrimeFaces docs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic