Ah. That's my Pascal brain expecting all function definitions to be *before* actual use. I could have easily found that with a search, but I was so convinced that it was supposed to be at the top. Thanks for pointing me in the right direction.
Thanks! I see the definition in the CSS for 'even'.
What's interesting is that I couldn't see any reference to the originally posted javascript, not imbedded in the HTML, or any tag to include it from an external file. Yet the page correctly stripes the table, so it must be somewhere. How...
The sample of stripe provided on alistapart.com was great because it included the HTML, CSS and Javascript.
Chris, do you have any HTML that shows how to effectively use your javascript routine?
I post this in the middle of the night, head into the shower, and before I go to bed I find two excellent answers that already solve the issue! This is just too awesome for words! Good to know odd and even are coming (as soon as CSS3 is more common), and even better to see examples of how to...
When I saw the first-child pseudo class, I thought for sure there would be an odd-child and even-child class (to allow me to color band my HTML tables). Alas, no such beast exists as far as I can tell. I'm looking for a CSS shortcut or trick for taking a generic table and making every other...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.