Help: Centering Rank Titles
2 posters
Page 1 of 1
Help: Centering Rank Titles
This may be a noobish question. When I add rank images for admins, community leaders, etc, they appear in the same position each time at the left. Unfortunately, users' avatars vary in width, and I find it rather unattractive to not have the rank image centered above the avatar. Is there a way to get the rank to center, instead of default at the left? Thanks.
Arrandale- New Member
- Posts : 4
Reputation : 1
Language : English
Re: Help: Centering Rank Titles
Hi!
Add to JavaScript management:
Then add to CSS Stylesheet:
Add to JavaScript management:
- Code:
$(function(){
$('.postprofile dl dd(eq(0)) img').addClass('rankimg');
});
Then add to CSS Stylesheet:
- Code:
.rankimg{
margin-left: 100px !important;
}
Guest- Guest
Re: Help: Centering Rank Titles
Thanks for the fast reply, I really appreciate the help. For some reason it still appears to the left. I'm not sure if I did something wrong. I added the javascript code, and made the edit to the CSS stylesheet.
Arrandale- New Member
- Posts : 4
Reputation : 1
Language : English
Re: Help: Centering Rank Titles
It might just look better to add a space between the rank image and the user's avatar, and it's probably easier. Do you know how to do that?
Arrandale- New Member
- Posts : 4
Reputation : 1
Language : English
Re: Help: Centering Rank Titles
Arrandale wrote:Thanks for the fast reply, I really appreciate the help. For some reason it still appears to the left. I'm not sure if I did something wrong. I added the javascript code, and made the edit to the CSS stylesheet.
Arrandale wrote:It might just look better to add a space between the rank image and the user's avatar, and it's probably easier. Do you know how to do that?
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead! |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum