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

XF 1.4 Center avatar in Message Post

Discussion in 'Styling and Customization Questions' started by DaveL, Jan 4, 2015.

  1. DaveL

    DaveL Well-Known Member

    Ive made some alterations to the size of my user info section - however now the avatar is stuck over to the left. Where abouts do I alter the avatar so it aligns in the center?

  2. RobinHood

    RobinHood Well-Known Member

    Hard to say exactly without seeing the site, but maybe adjust the padding in the style properties or adjust the value here in extra.css

    .messageUserBlock div.avatarHolder {
         padding: 10px;
  3. DaveL

    DaveL Well-Known Member

    Thanks for that, however gave it a try and no luck.
  4. Amaury

    Amaury Well-Known Member

    We'll need a link to your site.
  5. DaveL

    DaveL Well-Known Member

    Many thanks for your post.


    You will need to select the theme "Airport City 2015" as its still in development and not currently the default theme.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Using text-align: center works for me.

  7. DaveL

    DaveL Well-Known Member


    Sorry to be a pain, but what code would I put where?
  8. Brogan

    Brogan XenForo Moderator Staff Member

    .messageUserBlock div.avatarHolder
        text-align: center;
    If that doesn't work, it could be a style issue so contact the designer.
    DaveL likes this.
  9. DaveL

    DaveL Well-Known Member

    That worked a treat, thank you :)

Share This Page