Second comment appears wrong

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Second comment appears wrong

Post 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
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Can you post a link to the actual post that contains the comment?
=Don=
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post 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.
=Don=
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

Thanks man! Solved! You are my hero!
Post Reply