Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2017, 05:35 PM
Anton Rahman Anton Rahman is offline
 
Join Date: Nov 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 11-07-2017, 08:51 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-08-2017, 01:21 PM
Anton Rahman Anton Rahman is offline
 
Join Date: Nov 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.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 ??
Reply With Quote
  #4  
Old 11-08-2017, 02:00 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this:

Code:
.forum-list-container #forumXX.category-header .category { float: none; }
.forum-list-container #forumXX.category-header td { text-align: center; }
Reply With Quote
Благодарность от:
Anton Rahman
  #5  
Old 11-09-2017, 01:15 PM
Anton Rahman Anton Rahman is offline
 
Join Date: Nov 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 …..
Reply With Quote
Благодарность от:
Seven Skins
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03912 seconds
  • Memory Usage 2,204KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (2)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete