W3C home > Mailing lists > Public > www-style@w3.org > October 2007

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

From: Nikodem <nikn1@gazeta.pl>
Date: Mon, 01 Oct 2007 14:59:55 +0200
Message-ID: <4700EF4B.5050406@gazeta.pl>
To: www-style <www-style@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:55 GMT