I have a page where people can enter in first/last name, phone, email, and ethnicity click add and it adds an entry into the datatables. The problem is after clicking add th
This is an old question, but if like me you don't want to do this in CSS you can use drawCallback in 1.10 or higher to alter the table cell padding and/or height using JS.
var import_list = $( 'table.import_list' ).DataTable( {
'drawCallback': function () {
$( 'table.import_list tbody tr td' ).css( 'padding', '5px 8px 5px 8px' );
}
} )
As you can see in this fiddle your code is correct and should work as expected.
In any case to set a row height, simply use css
tr { height: 50px }
i think there is no need for it to be more complex.
Regarding the question on how to insert the data into a db, there are tons of examples on google.