brucie <br******@usenet.alt-html.org> wrote in
news:96***************@alt-html.org:
In post <Xn*************************@216.168.3.30>
bohinta said...
I'm looking for the list <LI> style what change
background-color in condition of its number as even/odd type.
li,li+li+li,li+li+li+li+li,li+li+li+li+li+li+li,li +li+li+li+li+li
+li+li+li{color:red;}
li+li,li+li+li+li,li+li+li+li+li+li,li+li+li+li+li +li+li+li,li+li
+li+li+li+li+li+li+li+li{color:green;}
wow!
<ul>
<li>blah
<li>blah
<li>blah
<li>blah
<li>blah
<li>blah
<li>blah
<li>blah
<li>blah
<li>blah
</ul>
not supported by IE
I like your approach, but is there a simpler way?
What happens if for example, you are styling a chapter in a bible
that runs between 30 to 50 verses?
I've always wanted to use alternate colors for each verse...but one
of the chapters run on to 176 verses!
At the moment, the html is
<ol>
<li id="b1c1v1"> (for book 1 chapter 1 verse 1)
<li id="b1c1v2"> (for book 2 chapter 1 verse 2)
<li id="bncnvn"> (for book n chapter n verse n)
</ol
I don't mind if not supported by IE
--
Kayode Okeyode
http://www.kayodeok.co.uk/weblog/