Kim Brooks Wei wrote:
At 9:31 PM -0400 9/2/10, David Laakso wrote:
On 9/2/10 8:23 PM, Kim Brooks Wei wrote:

I have nth child even-odd styling on this page set up as an ID. When I changed this to class so I could set up a second styled section farther down the page the styling broke. Any ideas as to why?
<http://bit.ly/ad7AEl>http://bit.ly/ad7AEl



I am not quite sure what you mean? And it may well be that I simply do not understand the question or the relevant CSS specifications.

It would seem to me, If you set it to a class then it must be a class in /both/ the CSS /and/ the markup. And either way -- class or id --
that attribute is not supported in any version of IE-- including IE/8.

Best,

Helen Adams Keller
Tuscumbia, Alabama


Hmmm, Hellen Keller,

I did change both my markup and css. I truly don't know why an id would work but not a class.


This may be due to an id having a specificity of 100 and a class having a specificity of 10.


Is there something else IE consumes without indigestion that will permit me to color the background on every second listing in a ul?

Cheery Kimi


For IE7+ this will work. Very cumbersome.

ul#colored1 li { /* even style */ }
ul#colored1 li+li { /* odd style */ }
ul#colored1 li+li+li { /* even style */ }
ul#colored1 li+li+li+li { /* odd style */ }
ul#colored1 li+li+li+li+li { /* even style */ }
ul#colored1 li+li+li+li+li+li { /* odd style */ }




--
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
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/

Reply via email to