• 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

Betclever

Active member
#1
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>
</xen:if>

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:

https://gyazo.com/e15e85a2418b58ab140317371fe77e25

Thanks for your help.
 
Last edited: