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)
-   -   put picture in this widget that match to border exactly (https://vborg.vbsupport.ru/showthread.php?t=302768)

fariborz khan 09-28-2013 06:57 PM

put picture in this widget that match to border exactly
 
1 Attachment(s)
I want put picture in this widget that match to border exactly
This is default vbulletin widget

https://vborg.vbsupport.ru/attachmen...1&d=1380398174

fxdigi-cash 10-06-2013 01:55 AM

when you choose html type for the custom widget, you add do one of the options:

- add a class or id to your div then add css style to it at additional.css

or

- add css style directly to the div where you want the picture to show up

fariborz khan 10-07-2013 09:45 AM

Quote:

Originally Posted by fxdigi-cash (Post 2450290)
when you choose html type for the custom widget, you add do one of the options:

- add a class or id to your div then add css style to it at additional.css

or

- add css style directly to the div where you want the picture to show up

please help me because i understand you now what i am say(i am not expert in English)

- add a class or id to your div then add css style to it at additional.css...... can you explain with an example or take a link that how i can do it?
.....how i can enter mine classes into the divs?
i know it is simple for you but i am beginner;)

Digital Jedi 10-08-2013 02:59 AM

If you add a class to your widget when you create it, you can then create CSS code to style the widget. CSS code looks something like this.:

HTML Code:

.yourclassname {
          color:red;
          background-color:purple;
          width:300px;
}

You can then add the CSS code to your additional.css template.

Your class name can be whatever you want to name it, as long as it doesn't share the same name as any other class your vBulletin is already using. Otherwise they'll fight each other. CSS is pretty easy to learn, and you really only need to know just enough to style your widget. You can go here to learn more about CSS, or you can try Google for a CSS tutorial in your native language. I highly recommend learning CSS as soon as you can.

fariborz khan 10-08-2013 07:30 AM

tanks a lot:)


All times are GMT. The time now is 02: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.01204 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_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