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

message_user_info - Moving fields onto same line as label?

Discussion in 'Styling and Customization Questions' started by Coop1979, May 31, 2012.

  1. Coop1979

    Coop1979 Well-Known Member

    Does anyone know how I can change message_user_info so that "Message Count" and "1,234" are on the same line without a carriage return?

    I tried this, but then the # of posts loses it's styling and just looks like the phrase "Message Count".

    Code:
    <dl class="pairsInline">
    <dt>{xen:phrase member_since}: {xen:date $user.register_date}</dt>
    </dl>
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Code:
    <dl class="pairsInline">
    <dt style="display: inline;">{xen:phrase member_since}:</dt>
    <dd style="display: inline;">{xen:date $user.register_date}</dd>
    </dl>
    If it's just that one piece of info you want like that, then the above will achieve it.

    Alternatively, we can add something in EXTRA.css to make it a global change for all elements in the message_user_info.
     
  3. Coop1979

    Coop1979 Well-Known Member

    I do want it to be a global change (with text continued on the next line if it extends too far). How can I make that happen?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    Code:
    .messageUserBlock .extraUserInfo dt
    {
    display: inline!important;
    }
     
    .pairsInline dd
    {
    display: inline!important;
    }
    Add that code to Extra.css :)
     
    Coop1979 likes this.

Share This Page