[CSS3 Selectors] proposal of pseudo-classes :odd-child and :odd-line

table tr:odd-child // similar to :first-child
{
background:gray
}

<table>
<tr><td>Odd </td><td>Row</td></tr> <!-- has gray background -->
<tr><td>Even</td><td>Row</td></tr>
<tr><td>Odd </td><td>Row</td></tr> <!-- has gray background -->
<tr><td>Even</td><td>Row</td></tr>
</table>

pre:odd-line // similar to :first-line
{
background:grey
}

<pre>
Odd  line <!-- has gray background -->
Even line
Odd  line <!-- has gray background -->
Even line
</pre>

-- 
Nikodem
JID: nikn@jabber.org

Received on Monday, 1 October 2007 13:00:22 UTC