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.
ert4
New member
New member
Posts: 7
Joined: 04 Aug 2015, 16:23

Every second post have a different color. How?

Postby ert4 » 21 Oct 2015, 22:17

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: 589
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA

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

Postby Sniper_E » 24 Oct 2015, 15:10

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!


Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: Bing [Bot], CommonCrawl [Bot] and 1 guest