greg9885
Member
Posted 2 years ago #
Here's my problem... I'm trying to style an author comment, but only the <li>. I have threaded comments and when I apple a different background color to the li, then every comment's background in that thread gets changed. I tried this: ul.commentlist li.comment-author-admin.depth-1 {background:#252525;} but it's not working??
Any ideas?
Assuming by "author", you mean the post's author, try styling on ul.commentlist li.bypostauthor.
greg9885
Member
Posted 2 years ago #
Yes, I do mean post author... and .bypostauthor does the same thing
Any other suggestions?
You probably need to add another CSS block to re-style the children of ul.commentlist li.bypostauthor or use something like ul.commentlist > li.bypostauthor.
greg9885
Member
Posted 2 years ago #
I'm trying, the the background color just overrides the background color of the child since it's all technically inside li.
What about the depth-1 class? Can I say something like: if depth is 1 and commented by author, then display like this...
That's what I tried to do with ul.commentlist li.comment-author-admin.depth-1, but no luck
greg9885
Member
Posted 2 years ago #
So is there any other class I should be using?