How to change the font size in jqGrid?

Kim Stacks picture Kim Stacks · Nov 5, 2009 · Viewed 33.6k times · Source

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

Please advise.

Thank you.

Answer

Justin Ethier picture Justin Ethier · Dec 17, 2009

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}