You really don't need to do any editing of PHP or cloning templates. All you need is a custom_css.php in your main list template folder. There should be an example already in there.
As Troester pointed out, we already have an option, under "List settings" for the element, to "Use as row class", which is specifically designed to do exactly what you need. If you set this as 'yes' for an element, we then add the value of that element in each row to the row's (tr) class list. So if your two possible values are "active" and "inactive", then we will add "active" or "inactive" to each row's class, as appropriate.
Obviously you can use that to style the whole row ...
Code:
tr.active {
background-color: green;
}
... which tells CSS to style table rows with class 'active' with a green background.
But if you want to restrict your styling to just one cell (td), then you can use a more specific CSS selector. Each cell (td) in your list's table already automatically has the element's full name as a class. So you can use something like this to be more specific in your custom CSS about what you are styling ...
Code:
tr.active td.prbi___Status {
background-color: green;
}
tr.inactive td.prbi___Status {
background-color: red;
}
... which tells CSS to style any td's with the class 'prbi___Status' which are inside a tr with class 'active' as green, and those inside a tr with class 'inactive' as red.
-- hugh