1. 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

Discussion in 'Styling and Customization Questions' started by Betclever, Oct 5, 2016.

  1. Betclever

    Betclever 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: Oct 5, 2016

Share This Page