vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Center Avatars (https://vborg.vbsupport.ru/showthread.php?t=232669)

jody108 01-10-2010 12:41 AM

Center Avatars
 
Hello,

I was give this code to plug into my css in order to get my avatars to be centered.

/* center avatar in postbit legacy */
.postbitlegacy .userinfo .postuseravatar {text-align:center; }

Where do I plug it in?

If I go to Styles and Templates > ???

Where do i go from there and where, exactly, to I plug it in.

Anyone know?

Lynne 01-10-2010 01:36 AM

I already answered your question about this over on vb.com.

MrPHD 01-25-2010 07:28 PM

Hi simple do this,
Admincp
template administrator
template.CSS
Postbit.css
and find

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
display:block;
margin:{vb:math {vb:stylevar padding}/3} auto 0;
text-align:left;
width: auto;
}

and change where says "left" to center

have a nice day.

TimberFloorAu 01-25-2010 07:57 PM

Quote:

Originally Posted by MrPHD (Post 1966425)
Hi simple do this,
Admincp
template administrator
template.CSS
Postbit.css
and find

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
display:block;
margin:{vb:math {vb:stylevar padding}/3} auto 0;
text-align:left;
width: auto;
}

and change where says "left" to center

have a nice day.

Changed to:

Code:

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
        display:block;
        margin:{vb:math {vb:stylevar padding}/3} auto 0;
        text-align:{vb:stylevar left};
        width: auto;
}

in 4.0.1 Changing left to center makes no difference

MrPHD 01-25-2010 08:16 PM

Quote:

Originally Posted by TimberFloorAu (Post 1966453)




in 4.0.1 Changing left to center makes no difference

Yes in 4.0.1 it works in did.

acco 01-25-2010 10:41 PM

I got it to center with
Code:

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
        display:block;
        margin:{vb:math {vb:stylevar padding}/3} auto 0;
        text-align:{vb:stylevar center} center;
        width: auto;
}


MrPHD 02-17-2010 03:52 PM

On version 4.0.2 you have find;
PHP Code:

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
    
display:block;
    
margin:{vb:math {vb:stylevar padding}/3auto 0;
    
text-align:{vb:stylevar left};
    
widthauto;
    
float: {vb:stylevar left};
    
clearboth;


and change for;

PHP Code:

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
    
display:block;
    
margin:{vb:math {vb:stylevar padding}/3auto 0;
    
text-align:{vb:stylevar centercenter;
    
widthauto;
    
float: {vb:stylevar center};
    
clearboth;



Professional2 03-23-2010 01:25 PM

i coudn't find it can u plz explain more?

Professional2 03-30-2010 06:01 AM

i mean this:
Admincp
template administrator
template.CSS
Postbit.css
and find

Lynne 03-30-2010 01:47 PM

I don't understand your question. Do a Search in Templates for ".postbitlegacy .userinfo .postuseravatar" and you should find the CSS they are talking about.


All times are GMT. The time now is 08:44 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.01169 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete