Cell styles according to table cells