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