• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Custom field => align image


Active member
Hi all,

I made a custom field for people who want to add their favorite team (image) but I can't align them...

Here is the HTML code:

<xen:if is="{$user.customFields.NBA}">
<div align="center" class="NBA"><img class= "NBA" src="/NBA/{$user.customFields.NBA}.png" /></div>

I tried everything with CSS but I'm not expert => (margin: auto; display: block;) | (right:0; left: 0; position: absolute;) but see the bug on the capture:


Thanks for your help.
Last edited: