myshop-background-color-odd:< colourcode >
Entity | Value |
---|---|
Attribute(s) | style |
Type | condition |
Relation | myshop-block:product |
The myShop condition myshop-background-colour-odd:<colourcode>
is the opposite of myshop-background-colour-even:<colourcode>
, This one makes it possible to set the element’s background colour with for instance a <td>
if the serial number of the row is an odd one. The colour code can be displayed in the #RGB – red, green, blue – value. The example below shows the odd rows of the product list with the background colour #E4EEDE.
<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.