wood burning stoves 2.0*
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 Android Security Essentials Live Lessons 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: 15959
    
  19

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.
 
 
subject: How to change font size of submenu and menu of primefaces.
 
Similar Threads
MenuItem font setting
How to find font size defined in user environment
Using CSS float for positioning page elements
Cannot create MENU using Tiles
Changing font size in javafx.scene.control.ChoiceBox