Every second post have a different color. How?

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the phpBB 3.1.x discussion forum.
Post Reply
ert4
New member
New member
Posts: 7
Joined: 04 Aug 2015, 16:23

Every second post have a different color. How?

Post by ert4 »

How can I make every second post in my forum have a different background color than the previous post?

exmaple:
Post 1 = White
Post 2 = Grey
Post 3 = White
Post 4 = Grey
...

(I'm not using standard theme/template prosilver, I'm using subsilver2)

Thanks in advance!
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: Every second post have a different color. How?

Post by Sniper_E »

In subsilver2 you have to edit the styles/subsilver2/theme/stylesheet.css

The row colors for posts use the classes .row1 and .row2 in subsilver2

Code: Select all

.row1 {
	background-color: #ECECEC;
	padding: 4px;
}

.row2 {
	background-color: #DCE1E5;
	padding: 4px;
}
Replace with

Code: Select all

.row1 {
	background-color: #FFFFF;
	padding: 4px;
}

.row2 {
	background-color: #EEEEEE;
	padding: 4px;
}
Save your edits, upload to your server,
Refresh theme for phpBB 3.0*,
Clear cache for phpBB 3.1*,
Then refresh your browser to see the changes.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Post Reply