vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Why text-align: center and float: center doesn?t work on forum category title in vB5? (https://vborg.vbsupport.ru/showthread.php?t=325751)

Anton Rahman 11-07-2017 05:35 PM

Why text-align: center and float: center doesn?t work on forum category title in vB5?
 
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:

Code:

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


For alignment:

Code:

.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:

Code:

.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 …..


All times are GMT. The time now is 09:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00927 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete