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

XF 1.3 Center all banners in messageUserBlock

Discussion in 'XenForo Questions and Support' started by Chimpie, Aug 20, 2014.

  1. Chimpie

    Chimpie Well-Known Member

    We are using banners for some of the usergroups and the default staff banner. We would like to center them, as we've already center the user names and user titles.

    I put this in the extra.css (tried before posting here) but it's not working:
    Code:
    .messageUserBlock .userBanner
    {
    text-align: center;
    }
    Suggestions?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Banners are centred by default.

    What is the link to your site with an example of banners which aren't?
     
  3. Chimpie

    Chimpie Well-Known Member

    Via my smartphone...

    emtlife.com/threads/39216
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The banner is centred.

    upload_2014-8-20_22-10-41.png
     
  5. Chimpie

    Chimpie Well-Known Member

    In portrait mode it isn't...

    Screenshot_2014-08-20-17-14-35.png

    Still trying to remember what information to include. Sorry.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Ah, you mean in the minimum responsive width.

    You will need to edit the class for .Responsive .messageUserBlock .userBanner.

    upload_2014-8-20_22-34-52.png
     
  7. Chimpie

    Chimpie Well-Known Member

    I'm probably making this harder than I need to, still learning, but I put in the extra.css this...

    Code:
    <xen:if is="@enableResponsive">
    .Responsive .messageUserBlock .userBanner
    {
    text-align: center;
    }
    </xen:if>
    No luck. Am I going about it the wrong way?
     
  8. Chimpie

    Chimpie Well-Known Member

    Still can't figure this out.
     

Share This Page