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.

How to center avatars?

View previous topic View next topic Go down

Solved How to center avatars?

Post by dudi on November 21st 2011, 3:03 am

Sou, i think you see what's the problem. Smile

dudi
Forumember

Male Posts : 104
Reputation : 30
Language : English

Back to top Go down

Solved Re: How to center avatars?

Post by Guest on November 21st 2011, 8:16 am

Do you use phpBB2? If yes, go to Administration Panel => Display => Templates => General => viewtopic_body => Find:
Code:
{postrow.displayed.POSTER_AVATAR}
and replace by:
Code:
<center>{postrow.displayed.POSTER_AVATAR}</center>
Save template and publish. Wink

Guest
Guest


Back to top Go down

Solved Re: How to center avatars?

Post by dudi on November 21st 2011, 9:40 pm

When i put that code, it's centered both vertically and horizontally. Is there a way just to center it horizontally?


Last edited by dudi on November 21st 2011, 9:43 pm; edited 1 time in total

dudi
Forumember

Male Posts : 104
Reputation : 30
Language : English

Back to top Go down

Solved Re: How to center avatars?

Post by Guest on November 21st 2011, 9:43 pm

Glad I could help you. Wink

Guest
Guest


Back to top Go down

Solved Re: How to center avatars?

Post by dudi on November 21st 2011, 9:43 pm

Edited my first reply, sry. Smile

dudi
Forumember

Male Posts : 104
Reputation : 30
Language : English

Back to top Go down

Solved Re: How to center avatars?

Post by Guest on November 21st 2011, 9:48 pm

Can you provide a link to one topic? Smile

Guest
Guest


Back to top Go down

Solved Re: How to center avatars?

Post by dudi on November 21st 2011, 9:48 pm


dudi
Forumember

Male Posts : 104
Reputation : 30
Language : English

Back to top Go down

Solved Re: How to center avatars?

Post by Nera. on November 21st 2011, 10:17 pm

You should consider using something else rather than center tags.
http://help.forumotion.com/t93702-update-tutorials-etc-to-remove-unsupported-html-tags

Something like this:

Code:
<div style="margin:auto;text-align:center;width:100%">{postrow.displayed.POSTER_AVATAR}</div>

Check how many <br /> tags do you have after this {postrow.displayed.POSTER_AVATAR}. Try removing any if you have them to lower the gap.

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: How to center avatars?

Post by dudi on November 22nd 2011, 12:24 am

Yep, i had to delete one
Code:
</br>
Now everything works, thx.

dudi
Forumember

Male Posts : 104
Reputation : 30
Language : English

Back to top Go down

Solved Re: How to center avatars?

Post by Nera. on November 22nd 2011, 12:27 am

Welcome.

> Solved

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.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