I really love this way of styling, pure CSS and no images. I did "tweak" it a little bit, so you don't need the conditionals, and it will work with all ranks, even custom ones. It isn't really pretty, but adding this to extra.css will apply this styling to the ranks:
Code:
.userTitle {
width: 108px;
margin: 2px 0 5px 25px;
padding: 2px 0 3px 0;
border: 1px solid @primaryLight;
border-radius: 5px;
background: @secondaryLighter url('@imagePath/xenforo/gradients/tab-unselected-25px-light.png') repeat-x top;
text-align: center;
font: 11px verdana,sans-serif;
text-decoration: none;
color: @primaryMedium;
text-shadow: 1px 1px 0 #fff;
outline: 0;
}
.userBlurb .userTitle {
background: transparent;
border: none;
text-shadow: none;
font: 13px arial;
}
.messageUserBlock .userText {
text-align: center;
}
.xenOverlay .userTitle, .profilePage .userTitle {
margin: 0;
}
A bit more details:
.userTitle will apply the styling to the existing ranks, as seen on this site already (e.g. Member under my username). If you want to tweak the colors for it, @secondaryLighter controls the background color, @primaryMedium controls the font color, @primaryLight controls the border color. You can use hex color codes if you want to. You will most likely have to adjust the margins, the values above are tweaked for centering the styling on my site. Note: You might have to add display: block; to this. I removed it cause it was already applied elsewhere on my site.
.userBlurb .userTitle overrides the styling for the userblurb on your profile page. This will include more than just the rank, and I found no good way to make this look good, so I decided to remove the styling to it. I had to reset the font styling to match the rest of the profile page as well, you will most likely have to tweak this to your style.
.messageUserBlock .userText is used to center the username. On my site it was aligned to the left. If you don't want it centered or it already is, just remove the entire rule.
.xenOverlay .userTitle, .profilePage .userTitle is used to correct the positioning of the rank on the overlay and your profile page.
The result:
