user3287550 user3287550 - 6 months ago 24
jQuery Question

How to change <TR> element height via CSS?

I'm trying to change tr height of my jquery datatable, I'm looking for a property to set in the

, but unfortunately I doesn't find nothing.

So I though to set the height of tr like this:

.css('min-height', '650px')
.css('tr height', '20px')

unfortunately the tr height isn't changed. What am I doing wrong?


if you are looking to just change the height of tr in table hen you should use this

$('#tableID tr').css('height', '200px')

or if you want to just increase the height of the tbody element then you can do this by

$('#tableID tbody tr').css('height', '20px')

Only header :

$('#tableID thead tr').css('height', '20px')