myshop-color-even:< colourcode >
Entity | Value |
---|---|
Attribute(s) | style |
Type | condition |
Relation | myshop-block:product |
The myShop condition myshop-colour-even:<colourcode>
makes it possible to set the element’s text colour if the serial number of the rows is an even number. The colour code can be displayed in the #RGB – red, green, blue – value. The example below shows that the even rows of the product list now have the text colour #E4E7F0.
<table border="0" style="myshop-block:productlist">
<tr style="myshop-block:product">
<td style="myshop-value:1;myshop-color-even:#E4E7F0;myshop-color-odd:#E7EEDE;" valign="top">1</td>
<td style="myshop-value:2;myshop-color-even:#E4E7F0;myshop-color-odd:#E7EEDE;" valign="top">2</td>
</tr>
</table>
Post your comment on this topic.