How to center username and group title

Brogan

XenForo moderator
Staff member
Add this to EXTRA.css
Code:
.messageUserBlock h3.userText {
text-align: center;
}

Or you can do it in Style Properties -> Message Layout -> User Info Block and add text-align: center; to the Miscellaneous field.
 

majesty95

Active member
Add this to EXTRA.css
Code:
.messageUserBlock h3.userText {
text-align: center;
}

Or you can do it in Style Properties -> Message Layout -> User Info Block and add text-align: center; to the Miscellaneous field.
I did this and it only centers the user title, not the username. How can I do both?
 

Amaury

Well-known member
@majesty95, you can actually do this with a style property: Style Properties > Message Layout > User Text Block

Put in text-align: center; in the large miscellaneous field.
 

Amaury

Well-known member
Style Properties > Message Elements > Author User Name and Author User Title

Remove the display: block; and it'll work.
 

majesty95

Active member
Have another question. How do a set a parameter for how wide this bar will be? It looks fine on the sidebar but everywhere else it is stretched...

User title.png

Lastly, I have the premium user group set to allow a custom user title. But if a mod has premium access, the mod bad gets overridden by the custom user title. How can I fix that as well?
 
Top