vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   forumhead: One different color from the rest. (https://vborg.vbsupport.ru/showthread.php?t=312719)

swisscotton 07-06-2014 09:10 AM

forumhead: One different color from the rest.
 
Can anyone tell me how to change the background colour of different forum sections on the homepage. In firebug this would be the forumhead foruminfo L1 collapse class.

I have looked at the mods for changing the title colour and background color on forums but I don?t think these are what I want. On the in index page I want one section to be a different colour from the rest.

Dave 07-06-2014 09:28 AM

You should be able to achieve this with the :nth-child(3) selector where 3 depends on the which forum section it is.

cellarius 07-06-2014 12:12 PM

Why use the child selector, if the categories all have an unique id?

Code:

#cat123 .forumhead { color: #123456; }
Where, of course, the 123 in #cat123 needs to be replaced with the actual id of the category (see source code or admincp/forum manager).

Dave 07-06-2014 12:15 PM

Quote:

Originally Posted by cellarius (Post 2505507)
Why use the child selector, if the categories all have an unique id?

Code:

#cat123 .forumhead { color: #123456; }
Where, of course, the 123 in #cat123 needs to be replaced with the actual id of the category (see source code or admincp/forum manager).

Because .forumhead is not inside #cat123, it's a sibling.

Lynne 07-06-2014 03:38 PM

The <div> with class="forumhead foruminfo L1 collapse" is inside an <li> that has an id="catxx", so what cellarius proposed should be possible.

Dave 07-06-2014 03:46 PM

Oh my bad, I was looking at the ol tags. Should indeed be possible that way.


All times are GMT. The time now is 11:19 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.01004 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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