Typepad Connect Comments: How can get different background colors for odd and even-numbered comments?
Typepad Connect Comments: How can get different background colors for odd and even-numbered comments? What's the exact CSS code for this (the Typepad Knowledge base provides some information, but it's incomplete for lay people like myself).
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi! Here's a quick CSS recipe for coloring comment rows differently... Note that TypePad connect only provides CSS selectors for the "even" rows, so the "odd" rows are implied. And the "even" selector is only applied when comments are displayed in a "flat" list -- not a threaded one. But I just tested this out using the excellent product CSSEdit on a test blog of mine, and it worked. (Your mileage may vary, of course.)
#tpe-content #tpe-comments-content .even {
background-color : yellow;
}
You can set the background-color to whatever you'd like. The combination of those two preceding divs (tpe-content and tpe-comments-content are required to override the defaults on the .even class. But you could probably hack around that by doing something like this (not recommended, and again, your mileage may vary):
.even {
background-color : yellow !important;
}
Hope that helps!
The company and 1 other person say
this answers the question
-
Thank you. It does indeed work that way. Just too bad you can't use different colors for even and odd the way you can with regular Typepad comments. This is by itself is a major improvement. Thank you.
Loading Profile...



EMPLOYEE