Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes How to change font size of submenu and menu of primefaces. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to change font size of submenu and menu of primefaces." Watch "How to change font size of submenu and menu of primefaces." New topic
Author

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

Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

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

Joined: Apr 19, 2012
Posts: 37
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

Joined: Jun 25, 2001
Posts: 16897
    
  26

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to change font size of submenu and menu of primefaces.
 
It's not a secret anymore!