I've noticed that if you define a <style> tag in your markup, like this:
tr:nth-child(even) {background-color:#F4F4F4;}
And then you try to apply a css binding using knockout (this sets a background-color when you click on a row):
<tr data-bind="click: $parent.selectRow, css: {red: $parent.seletedRow() == $data}">
The second one is not set since I already defined a background-color within the <style> tag.
I need to mark the even rows with a color but when you click over a row its background-color must be replaced by the css class red. Here's an example:
http://jsfiddle.net/q3Uuz/1/ Try to click on the second row and you notice the redclass is not applyed.
How can achieve this?