Re: [css-d] Selectors for repeating patterns?

2007-09-12 Thread Jukka K. Korpela
On Tue, 11 Sep 2007, Jeff Jansen wrote: Is it possible to use CSS selectors to define repeating patterns of styles down a page? Not the way you (and I and many other people) would like to. This question most often arises in the context of tables: how do you specify alternating background

[css-d] Selectors for repeating patterns?

2007-09-11 Thread Jeff Jansen
Is it possible to use CSS selectors to define repeating patterns of styles down a page? For example, here's what I want to do (simplified): The markup would look like this: div id=repeat pThis is red./p pThis is green./p pThis is blue/p pThis is RED./p pThis is GREEN./p pThis

Re: [css-d] Selectors for repeating patterns?

2007-09-11 Thread Bjoern Hoehrmann
* Jeff Jansen wrote: Is it possible to use CSS selectors to define repeating patterns of styles down a page? For example, here's what I want to do (simplified): http://www.w3.org/TR/css3-selectors/#nth-child-pseudo can do that, but it hasn't been widely implemented yet; you can emulate the effect

Re: [css-d] Selectors for repeating patterns?

2007-09-11 Thread E Michael Brandt
That's a job for some unobtrusive javascripting to set alternating classes for you on page load. -- E. Michael Brandt www.divaHTML.com divaPOP : standards-compliant popup windows divaGPS : you-are-here menu highlighting divaFAQ : FAQ pages with pizazz www.valleywebdesigns.com JustSo