Centered username and avatar
+2
Akkii
JAN2XONLINE
6 posters
Page 1 of 1
Re: Centered username and avatar
Do you happen to know the code for this for PunBB, out of curiosity?
Xanthis- Forumember
- Posts : 210
Reputation : 6
Language : English
Re: Centered username and avatar
The PunBB code you provided worked for the profile text. Do you have the code for centering usernames?
Xanthis- Forumember
- Posts : 210
Reputation : 6
Language : English
Re: Centered username and avatar
viewtopic_body find:
- Code:
{postrow.displayed.POSTER_NAME}
{postrow.displayed.POSTER_AVATAR}
- Code:
<center>{postrow.displayed.POSTER_NAME}</center>
<center>{postrow.displayed.POSTER_AVATAR}</center>
- Spoiler:
Re: Centered username and avatar
I did that:
But the usernames are still left-aligned:
Link for miscellaneous purposes: http://sonicommunity.net/forum
But the usernames are still left-aligned:
Link for miscellaneous purposes: http://sonicommunity.net/forum
Xanthis- Forumember
- Posts : 210
Reputation : 6
Language : English
Re: Centered username and avatar
css find:
- Code:
.pun .user-ident .username {
color:
#00569C;
display: block;
font-size: 1.2em;
font-weight: 700;
position: absolute;
text-decoration: none;
top: 0;
}
add:
- Code:
margin-top: -20px;
padding-bottom: 5px;
- Spoiler:
Re: Centered username and avatar
Nope.
Margin-top only shifted the name vertically, and padding-bottom effectively did nothing. Still no change horizontally.
Margin-top only shifted the name vertically, and padding-bottom effectively did nothing. Still no change horizontally.
Xanthis- Forumember
- Posts : 210
Reputation : 6
Language : English
Re: Centered username and avatar
try:
- Code:
<h4 class="username" style="padding-bottom: 5px;margin-top: -20px;position: relative;">
Re: Centered username and avatar
Same idea, it effectively removes the username because it's only changing its vertical position.
Xanthis- Forumember
- Posts : 210
Reputation : 6
Language : English
Re: Centered username and avatar
Solved through CSS:
- Code:
.pun .user-ident .username {
text-align: center;
position: relative;
margin-bottom: 10px;
}
Xanthis- Forumember
- Posts : 210
Reputation : 6
Language : English
Re: Centered username and avatar
We'll wait for the topic creator to see is it solved for him.
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Similar topics
» Avatar centered.
» Avatar centered.
» avatar, username etc...
» avatar, username etc...
» Username above avatar.
» Avatar centered.
» avatar, username etc...
» avatar, username etc...
» Username above avatar.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum