Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the font size in jqGrid?

It is already running with the ui-lightness. How do I change the font size inside the grid?

Please advise.

Thank you.

like image 930
Kim Stacks Avatar asked Nov 05 '09 00:11

Kim Stacks


2 Answers

There is an excellent post about this on the jqGrid Forum.

Essentially you can do what Mano suggests and modify the css file directly, or you can create your own in-line style if you need more flexibility. For example:

.ui-jqgrid {font-size:0.8em}

If you do create an inline style you may need to make it more specific to pick up grid rows:

.ui-jqgrid tr.jqgrow td {font-size:0.8em}
like image 123
Justin Ethier Avatar answered Oct 04 '22 03:10

Justin Ethier


The very first line in ui.jqgrid.css is this:

 .ui-jqgrid{position:relative;font-size:11px;}

Change the font-size to what you need.

like image 31
Mano Avatar answered Oct 04 '22 04:10

Mano