Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change font size and tab width & height of jQuery-UI tabs

I am using jQuery-UI to add tabs on my page, after I added it, I feel the tab font size and tab width and height are too large for my page. I would like to change the font size and tab width and height. How to do it?

like image 955
Leem.fin Avatar asked Oct 09 '11 08:10

Leem.fin


2 Answers

you need to change it in a css class like this

.ui-tabs .ui-tabs-nav li a {font-size:7pt !important;}
like image 57
Alon Eitan Avatar answered Oct 02 '22 02:10

Alon Eitan


Go to the jQuery UI ThemeRoller and create your own theme or modify the presets. On the right hand side under 'Font settings' there is the option to change the font size.

ThemeRoller Font Settings

As for the size of the tabs, look at the CSS file that came with the jQuery UI package you downloaded. Find the selector for the jQuery UI tabs and edit the padding property:

.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
like image 40
Yi Jiang Avatar answered Oct 02 '22 04:10

Yi Jiang