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.

Professional2 03-31-2010 04:28 AM

1 Attachment(s)
Quote:

Originally Posted by Lynne (Post 2012874)
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.

tnx,it worked but see the picture:

i want all of them from username to avator be center what shoud i do?

Professional2 03-31-2010 12:42 PM

by the way my version is 4.0.2

Lynne 03-31-2010 01:46 PM

Sorry, but CSS is almost impossible to just come up with from seeing an image. If you want someone to write some CSS to center your userinfo, you should post a link to a showthread page so someone can play with it using firebug.

Professional2 04-01-2010 04:04 AM

but i saw this at this site:
http://www.dotsis.com/mobile_phone/a...9x-signed.html

my showthread is:
http://forum.mobile4persian.com/appl...-personal.html

Lynne 04-01-2010 01:48 PM

It looks like they just went through and applied "text-align:center" to all the classes in the sidebar there. Just use firebug and go right down the items there to get their classes.

Professional2 04-02-2010 05:21 AM

i coud do it but there is only one problem.
i can't align center the repetution image (above avator) any suggestion for it?

Lynne 04-02-2010 01:34 PM

Sorry, I can't get to your site so I can't make any suggestions:

Quote:

Server not found

Firefox can't find the server at forum.mobile4persian.com.

Professional2 04-03-2010 04:55 AM

tnx for your reply plz try again,here is the postbit.css:

Professional2 04-03-2010 04:59 AM

1 Attachment(s)
here is the postbit.css:

Michael.A 09-01-2011 10:05 PM

find:
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;
        float: {vb:stylevar left};
        clear: both;
}

replace with:
Code:

.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
        display:block;
        margin:{vb:math {vb:stylevar padding}/3} auto 0;
        width: auto;
        clear: both;
}

the width: auto; so u dont need to point it out in the css but i check out IE7 and see if it works there


All times are GMT. The time now is 04:57 PM.

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.01210 seconds
  • Memory Usage 1,766KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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