1 Username Above Avatar Sat Mar 17, 2012 6:27 pm
magicm00n
Registered Member
Hi, How can I make the usernames above the avatar in phpbb3?
$(function(){
$('.postprofile dl').each(function(){
var theBox = $(this).children('dt:first');
var uNameX = theBox.children('strong').html()+'<br>';
theBox.children('a').before(uNameX);
theBox.children('strong').hide();
});
});
p a[href="/u#"], .forabg a[href="/u1"], .forumbg a[href="/u#"], .postprofile strong a[href="/u#"], .page-bottom a[href="/u#"], #chatbox_members a[href="/u#"], .module a[href="/u#"] {
background: url("imagedirectlink") no-repeat;
padding-left: 16px;
padding-top: 2px;
}
.postprofile a[href*="/u#"] strong {
background: url("imagedirectlink") no-repeat;
padding-left: 16px;
padding-top: 2px;
}
magicm00n wrote:Working! Thank you very much!!
What about ranks? I want to place it above the avatar but below the username, how can I do that?
medlsc wrote:I put the javascript code, but how to resize the username ?
.postprofile a strong {
font-size: 15px;
}
ankillien wrote:
I'm working on it.
$(function(){
$('.postprofile dl').each(function(){
var theBox = $(this).children('dt');
var uNameX = theBox.children('strong').html()+'<br>';
theBox.children('a').before(uNameX);
theBox.children('strong').hide();
var rankX = $(this).children('dd:first').html();
$(this).children('dt').children('a:first').after('<br>'+rankX);
$(this).children('dd:first').hide();
});
});
WebArtz - The Web Design Forum » Web Designing & Coding » CSS (Cascading Style Sheets) » Username Above Avatar
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum
|
|