Page 1 of 1

Second comment appears wrong

Posted: Sat Oct 13, 2007 5:03 pm
by holysjit
Hi,

When someone adds a second comment to an entry, it appears not right.
http://img259.imageshack.us/img259/2340/wtfdf3.png

I want that the second comment also has a gradient gray bar, but its still white. How to solve?

Regards,
Holy Sj!t

Posted: Sat Oct 13, 2007 6:42 pm
by Don Chambers
Can you post a link to the actual post that contains the comment?

Posted: Sat Oct 13, 2007 7:58 pm
by holysjit

Posted: Sat Oct 13, 2007 8:38 pm
by Don Chambers
No problem at all. Comments have an alternating style - one for odd numbered (1,3,5 etc) and another style for even numbered (2,4,6 etc).

Your stylesheet has a defined style for the odd numbered comments, but nothing for the even numbered comments. This is from your stylesheet:

Code: Select all

.oddbox, .plugin_comment_wrap {
	margin:0 0 20px 0;
	padding-left: 5px;
	text-align: center;
	border-top:1px solid black;
	border-bottom:1px solid black;
	border-left:1px solid black;
	border-right:1px solid black;
	color:#303030;
	background-image: url(http://thejokersweblog.nl/templates/andreas08/img/commentbox.png);
	line-height:1.5em; }

/* not used */
.evenbox {}
Easy to fix... just before the line with .oddbox, add .evenbox, (note the comma) and delete the /* not used */ .evenbox {}, so you now have this:

Code: Select all

.evenbox, .oddbox, .plugin_comment_wrap {
	margin:0 0 20px 0;
	padding-left: 5px;
	text-align: center;
	border-top:1px solid black;
	border-bottom:1px solid black;
	border-left:1px solid black;
	border-right:1px solid black;
	color:#303030;
	background-image: url(http://thejokersweblog.nl/templates/andreas08/img/commentbox.png);
	line-height:1.5em; }
All comments will be styled the same.

Posted: Sat Oct 13, 2007 11:11 pm
by holysjit
Thanks man! Solved! You are my hero!