vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How Can i Change CSS Setting (https://vborg.vbsupport.ru/showthread.php?t=177115)

Hamedk 04-25-2008 05:43 AM

How Can i Change CSS Setting
 
Hello
now i have a question again !!!:D
i want to change the default css settings (not by Contorl panel) because i want to add a class and use it on the template editor......
which file i should configue???
(sorry for my bad english)

Lynne 04-25-2008 03:38 PM

Styles & Templates > STyle Manager > find your style > Main CSS > at the bottom of that page is Additional CSS Definitions and you can add your class there.

I think that is what you want. If not, post back here.

Hamedk 04-25-2008 05:28 PM

yes ... your think is true
but ....
may show me a example here....
i want to add a class
thanks

Lynne 04-25-2008 06:01 PM

You can look at you style sheet (if it is in the file system) or you page (if it is just in the page) and see what it should look like. For example, for a simple change in color, I have listed under Additional CSS Definitions:

PHP Code:

 .color1 {color:green

Then, in my templates when I want to use that class, I would go:
PHP Code:

 <span class="color1">This is text I want showed in green</span

Or for more definitions in the class:
PHP Code:

.progtable {padding0pxbackground-imageurl(images/background.png); background-repeatrepeat-x}
.
progrow {padding0pxbackground-imageurl(images/progress.png); background-repeatrepeat-x

And in my plugin I have:
PHP Code:

    $t="<table border=0 width=101 height=17 class='progtable'>"
    
$t.="<tr><td width=$percent class='progrow'>"
    
$t.=" </td><td border=0></td></tr></table>"


Hamedk 04-25-2008 06:07 PM

so thankssssss
I'll use that '

you are a good friend for me....


All times are GMT. The time now is 07:51 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.01005 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_php_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