MyBB Community Forums

Full Version: Column color / colour
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone

I'm trying to change the colour of alternate columns, e.g.  'forum', 'threads', 'posts', etc

I've searched but can't find the answer.

I believe it's the forumbit templates but don't know how to change (or add to the code).

Basically I'm after this:[attachment=32462]
If you go into your Global CSS and add the following:


.trow1:nth-of-type(2n -1 ), .trow2:nth-of-type(2n - 1) {

   background-colour: #f00;  // styles to be applied to odd columns
}
.trow1:nth-of-type(2n ), .trow2:nth-of-type(2n) {

   background-colour: #0f0;  // styles to be applied to even columns
}


That didn't change anything.

anyone?
What is your forum URL?
@ChilledStorm : as suggested by Tom K
you can add below code at the bottom of theme's global.css and check by hard refreshing browser on the index page
.trow1:nth-of-type(2n -1), .trow2:nth-of-type(2n - 1) {

   background: #f00 !important;  /* styles to be applied to odd columns */
}
.trow1:nth-of-type(2n), .trow2:nth-of-type(2n) {

   background: #0f0 !important;  /* styles to be applied to even columns */
} 

change colors #f00 and #0f0 to your required colors (see color codes)