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
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
* 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
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