The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi
I want to put the avatar of the user in the center of the block in postbit legacy template, I tried every thing I can think of but without luck, could you please help me in doing this thing? |
|
#2
|
||||
|
||||
|
Try adding the following CSS selector to your "additional.css" template:
HTML Code:
.postuseravatar {
text-align: center !important;
width: 100% !important;
}
|
| Благодарность от: | ||
| TheLastSuperman | ||
|
#4
|
||||
|
||||
|
Note: Overkill if only wanting avatar centered however... You could center all of it, some prefer all of the userinfo centered (within reason) here is a snippet of code that will do so (most of which I copied from a post by Lynne loooooong ago other additions over time).
Code:
/* center avatar, username, title, rank, userinfo_extra, postbit_reputation, imlinks */
.postbitlegacy .userinfo .username_container, .postbitlegacy .userinfo .rank, .postbitlegacy .userinfo .usertitle .imlinks {
text-align:center;
}
.postbitlegacy .userinfo .postuseravatar, .postbitlegacy .userinfo .postuseravatar img {
float:none;
text-align:center;
}
.postbitlegacy .userinfo .usertitle {
display: block;
float:none;
text-align:center;
clear: both;
}
.postbitlegacy .userinfo .userinfo_extra {
text-align:center;
clear: both;
}
.postbit_reputation {
float:none;
text-align:center;
}
.postbitlegacy .imlinks {
float:none;
text-align:center;
}
.postbitlegacy .after_content {
clear:right !important;
}
Code:
.postbitlegacy .userinfo .userinfo_extra dl {
text-align:center;
}
.postbitlegacy .userinfo .userinfo_extra dt {
float:left;
text-align:right;
}
.postbitlegacy .userinfo .userinfo_extra dd {
float:left;
text-align:center;
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|