Here is a quick and simple tutorial to modify table row attributes. The tutorial assumes that you already have a class assigned for the TR tag – let’s say you are trying to do a zebra-style table where each row has a different color.
In my case, I tried to assign a class to the TD, but it won’t work because the class from the TR prevails in some browsers – and yes, I am no CSS expert. So, I came up with this solution to solve my problem.