Html5 Grid

Set the columnsheight property of the jqxGrid. Author: http://jqwidgets.com

HTML

<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<div id="jqxgrid"></div>

CSS

.green {
  color: black !important;
  background-color: #b6ff00 !important;
}

.yellow {
  color: black !important;
  background-color: yellow !important;
}

.red {
  color: black !important;
  background-color: #e83636 !important;
}

JavaScript

var data = generatedata(500);
var source = {
  localdata: data,
  datafields: [{
    name: 'firstname',
    type: 'string'
  }, {
    name: 'lastname',
    type: 'string'
  }, {
    name: 'productname',
    type: 'string'
  }, {
    name: 'date',
    type: 'date'
  }, {
    name: 'quantity',
    type: 'number'
  }, {
    name: 'price',
    type: 'number'
  }],
  datatype: "array"
};

var cellclass = function(row, columnfield, value) {
  if (value < 3) {
    return 'red';
  } else if (value >= 3 && value < 8) {
    return 'yellow';
  } else return 'green';
};

var adapter = new $.jqx.dataAdapter(source);
$("#jqxgrid").jqxGrid({
  width: 500,
  theme: 'energyblue',
  columnsheight: 30,
  source: adapter,
  sortable: true,
  selectionmode: 'singlecell',
  columns: [{
    text: 'First Name',
    datafield: 'firstname',
    width: 90
  }, {
    text: 'Last Name',
    datafield: 'lastname',
    width: 90
  }, {
    text: 'Quantity',
    datafield: 'quantity',
    width: 80,
    cellclassname: cellclass,
    cellsalign: 'right'
  }, {
    text: 'Unit Price',
    datafield: 'price',
    cellsalign: 'right',
    cellsformat: 'c2'
  }]
});