vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to input php to css (https://vborg.vbsupport.ru/showthread.php?t=292092)

Easy5s.net 11-29-2012 01:15 AM

How to input php to css
 
How can I do this?
For example:
my box is test1, test2, Test3 and test4.
Now i want to box test1 and Test3 are red, test2 and test4 is blue


Lynne 11-29-2012 02:31 AM

The forumid is used as an id for each row, ie. forum id 2 has an id of forum2. So, just write some CSS for it like:

#forum1 .forumrow, #forum3 .forumrow {background-color: red;}

Do similar for forumid2 and forumid4.

Easy5s.net 11-29-2012 07:55 AM

Quote:

Originally Posted by Lynne (Post 2386274)
The forumid is used as an id for each row, ie. forum id 2 has an id of forum2. So, just write some CSS for it like:

#forum1 .forumrow, #forum3 .forumrow {background-color: red;}

Do similar for forumid2 and forumid4.

Yes, I understand this, but I want to write a plugin or insert php to additional.css. When create one makes the box without having to manually edit.

cellarius 11-29-2012 09:12 AM

You can't use php in css.

Have a look at this: http://www.ich-lerne-css.de/track.ph...7/evenodd.html

Easy5s.net 11-29-2012 10:51 AM

Thank for girendra at www.minerskinz.com :)

nikosb 12-04-2012 06:00 PM

Quote:

Originally Posted by Easy5s.net (Post 2386410)
Thank for girendra at www.minerskinz.com :)

does not work on me
Do I need to add something to the additional.css?
the colors that put them in the alt1 and alt2?

THANKS


All times are GMT. The time now is 05:25 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.00995 seconds
  • Memory Usage 1,719KB
  • 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_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