The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Help: Centering Rank Titles

View previous topic View next topic Go down

Help: Centering Rank Titles

Post by Arrandale on April 8th 2012, 1:36 am

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

Back to top Go down

Re: Help: Centering Rank Titles

Post by Guest on April 8th 2012, 2:04 am

Hi!

Add to JavaScript management:
Code:
$(function(){
$('.postprofile dl dd(eq(0)) img').addClass('rankimg');
});
Placement : Only In the topics;

Then add to CSS Stylesheet:
Code:
.rankimg{
  margin-left: 100px !important;
}

Guest
Guest


Back to top Go down

Re: Help: Centering Rank Titles

Post by Arrandale on April 8th 2012, 2:29 am

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

Back to top Go down

Re: Help: Centering Rank Titles

Post by Arrandale on April 8th 2012, 2:43 am

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

Back to top Go down

Re: Help: Centering Rank Titles

Post by SLGray on April 8th 2012, 3:52 am

@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!




When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum