Change the background of author comments only

Jul 04, 2014 23:59

I'm trying to set a different background colour for author comments only.

Is there a specific class that controls this? (i.e. on Wordpress it's something like .comment list .bypostauthor)

...or if anyone could tell me whether it's even possible to do this through editing the custom stylesheet?

Thank you :)

[solved] - see below

free accounts, comments, solved

Leave a comment

Comments 2

fueschgast July 4 2014, 20:54:29 UTC
With CSS you can only address the author username. To highlight it, for exapmle:

.ljuser a[href*="AUTHOR.livejournal"] {
background: #ff0000;
}

But with that you could do something like make the whole top of the comment stand out:

.ljuser a[href*="AUTHOR.livejournal.com/profile"] {
background: #ff0000;
}

.ljuser a[href$="AUTHOR.livejournal.com/"] {
display: block;
margin: -16px 0px -20px 0px;
padding: 0px 0px 20px 17px;
background: #ff0000;
}

Reply

moonlessnightz July 5 2014, 08:20:13 UTC
Hey :) Thanks for the reply and letting me know about only being able to address the author username.

Your code for altering the top of the comments works perfectly even though it's not quite what I was looking for. But thank you still!

Your journal is very beautiful btw :)

Reply


Leave a comment

Up