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)
-   -   Wrapping Bacground Around Icons (https://vborg.vbsupport.ru/showthread.php?t=282297)

ssdevious 05-01-2012 11:34 PM

Wrapping Bacground Around Icons
 
1 Attachment(s)
Hello,

my mod puts icons into postbit, icons such as MSN, YouTube, etc. I want a background wrapped around it, so it recognizes the amount of icons displayed.

For example, this mod can let you display 6 messaging icons in postbit and the current background is adjusted to it, but when someone fills in his profile just MSN for example, the background stays and it's too big and looks weird.

I want it to be able to adjust, if someone has 1 messaging icon, wrap it around it, if someone has 2 or more, expand it.

My code for current background is this:

Code:

.socialpostbit {
        clear: both;
        text-align: center;
        margin: 5px 0;
        padding-top: 5px;
        padding-bottom: 2px;
        margin-left: 23px;
        margin-right: 23px;
        border: 1px solid #2c2c2c;
        background-color: #161616;
}
       
.userinfo .thread_info .blockbody {
        border-left: 1px solid #2c2c2c;
        border-right: 1px solid #2c2c2c;
        border-bottom: 1px solid #2c2c2c;
}


It looks like this:

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

Thanks,
~tEh'P?r4d0x


All times are GMT. The time now is 10:54 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.03266 seconds
  • Memory Usage 1,710KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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