PDA

View Full Version : Why text-align: center and float: center doesn?t work on forum category title in vB5?


Anton Rahman
11-07-2017, 05:35 PM
For example try adding the following to additional.css “in Vb5”
#forumX.category-header
{
background: #033144;
}

And it works like a charm, you get a new background color for your forum category identified by X node ID, but hey , why:
#forumX.category-header
{
color: #FFFFFF;
}
Never works in changing the font color of the same target forum category node ID???
Interesting right ?
PS. The capital X stands for whatever node ID you wanna target in your css mod.
Its kindda interesting that why if you wanna change the font color of that particular forum category node ID , you have to do:
.category[data-nodeid="X"]
{
color: #FFFFFF;
this time it works !!
Any ideas on what is the reason?
Now lets move on to the one million dollar question
Why in both cases and in any other way that:
text-align: center and float: center
will not work on forum category headers !!!!
Any ideas will help
Kindly note , this is for vBulletin 5, we are aware that there had been many successful codes to accomplish that in all former vBulletin versions , but so far none for vBulletin 5
Any advice is appreciated

Seven Skins
11-07-2017, 08:51 PM
This should do the trick...

For color:

#forumXX td a.category { color: red !important; }



For alignment:

.forum-list-container .category-header .category { float: none; }
.forum-list-container .category-header td { text-align: center; }

Tested on forum homepage vb 5.3.3

Anton Rahman
11-08-2017, 01:21 PM
.forum-list-container .category-header .category { float: none; }
.forum-list-container .category-header td { text-align: center; }

works like a charm

but how can we target specific node id's ??

Seven Skins
11-08-2017, 02:00 PM
Like this:

.forum-list-container #forumXX.category-header .category { float: none; }
.forum-list-container #forumXX.category-header td { text-align: center; }

Anton Rahman
11-09-2017, 01:15 PM
What else can we say, superman save the day AGAIN !!
Please accept our utmost regards o’ mighty WIZ
Not only that your PERFECT solution came ahead of the vBulletin support team
But it was in fact more correct and more direct to the point
You must know more about vBulletin than vBulletin knows about itself!!
Best regards master!, and much thanks, we also PM you to request purchase of your available skins/mods for vBulletin 5.3.3 , we will buy first think later …..