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">
<p>This is red.</p>
<p>This is green.</p>
<p>This is blue</p>
<p>This is RED.</p>
<p>This is GREEN.</p>
<p>This is BLUE.</p>
<p>This is Red.</p>
<p>This is Green.</p>
<p>This is Blue.</p>
</div>
Each paragraph would be colored as indicated, and there will always a
pattern of 3 colored lines.
So the CSS might look something like this:
#repeat p { color: #f00; }
#repeat [what-goes-here] { color: #0f0; }
#repeat [and-what-goes-here] { color: #00f; }
So my question is, what's the [what-goes-here] and [and-what-goes-here]?
Jeff Jansen
Portland, OR
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/