
How to adjust the width and height of the tab in jsf 2 primefaces. Also please tel me how to control the text(color and font size) inside the tab? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PrimeFaces uses the ThemeRoller CSS Framework. Go to the jQuery UI ThemeRoller page and create your own theme. Download the CSS file and include in your .xhtml pages.
Add this to your web.xml so the default theme is not used:
It is much easier to create a new theme then to figure which CSS rules to override to make the tabs look the way you want.
The jQuery UI tabs page has a section on Theming and the CSS rules it uses.
The tab width changes depending on the length of the text and the height is determined by the font-size.
To increase font size override the following CSS to something like this: