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

XF 1.2 Postbit Centered?

Discussion in 'Styling and Customization Questions' started by denisx04, Sep 25, 2013.

  1. denisx04

    denisx04 Active Member

    [​IMG]

    Basically I hate the way its spread right now, I do have a CSS code that centers id manually from the xenforo 1.1 days that CSS code appears to have no effect in 1.2 and I just wanted to see if anyone knew how I could center all the info in there.
     
  2. Adam Howard

    Adam Howard Well-Known Member

    Quick and easy....

    message_user_info

    Wrap the whole thing with

    PHP:
    <div style="text-align:center">

    </
    div>
    This will center everything there
     
  3. denisx04

    denisx04 Active Member

    Thanks for the reply Adam, but no dice :/
     
    SneakyDave likes this.
  4. Adam Howard

    Adam Howard Well-Known Member

    Really? It worked for me on the default style..... What style are you using?

    Try this....

    Extra.css

    PHP:
    .messageUserBlock .extraUserInfo {
    text-aligncenter;
    }
     
  5. Amaury

    Amaury Well-Known Member

    You need a semi-colon after "center." Adam made a typo and forgot it.
     
    Adam Howard likes this.
  6. denisx04

    denisx04 Active Member

    Thats the original code I had for 1.1 and that doesn't work at all on 1.2, has absolutely no effect. But this is the style I use http://xenique.com/forums/index.php?store-products/octane/

    Sent Forsaken a PM and will see if he can do anything since its his style.
     
    Adam Howard likes this.
  7. Adam Howard

    Adam Howard Well-Known Member

    You maybe better off doing so. As that is after all a custom style (outside the support for the support forums)

    But just wondering.... Have your tried adding !important

    PHP:
    .messageUserBlock .extraUserInfo {
    text-aligncenter !important;
    }
     
  8. denisx04

    denisx04 Active Member


    Yes, still no luck. @Amaury I caught onto it and added it myself and still no luck. Appreciate it anyways guys, will ask Forsaken.
     
    Adam Howard and Amaury like this.
  9. Adam Howard

    Adam Howard Well-Known Member

    Looks.... looks again.... No it's there?! :confused:
     
  10. Amaury

    Amaury Well-Known Member

     
    Adam Howard likes this.
  11. Brogan

    Brogan XenForo Moderator Staff Member

    A semi-colon is not required there.
     
    Amaury and Adam Howard like this.
  12. Amaury

    Amaury Well-Known Member

    Thought it was.

    Thanks for correcting me, Paul!
     
    Adam Howard likes this.
  13. Brogan

    Brogan XenForo Moderator Staff Member

    To answer the original question, add to EXTRA.css:
    Code:
    .messageUserBlock .pairsJustified dt {
    float: none;
    margin-right: 0;
    text-align: center;
    }
    
    .messageUserInfo .messageUserBlock .extraUserInfo dl.pairsJustified dd {
    float: none;
    text-align: center;
    }
     
    Adam Howard and Amaury like this.
  14. denisx04

    denisx04 Active Member

    You beautiful man you! Always the best, thanks so much Brogan!
     
    Adam Howard likes this.
  15. Amaury

    Amaury Well-Known Member

    This would be great for DOTATalk, but it's still on XenForo 1.1.4.

    Does this work on any version?
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    For 1.1.4:
    Code:
    .messageUserBlock .extraUserInfo {
    text-align: center;
    }
     
    Amaury likes this.
  17. Amaury

    Amaury Well-Known Member

    Thank you, Paul. :)
     

Share This Page