Back to Programming Articles

Use CSS for Username Markups
by Guest210212002 18 Jan 2006

If you are currently using standard HTML for your usergroup markups, chances are it's not looking the same between platforms (IE and Firefox, for example). If you're using the standard HTML codes, chances are the underline in the name is white, not any custom color you're setting. Here's how to fix it.

Note: I originally wrote this here but am no longer associated with that license, and will only be answering questions in this thread.

Example Standard opening code:
Code:
<font color="orange"><b>
Example Standard closing code:
Code:
</font></b>
To use CSS and to ensure they look the same between browsers, add the following to your Main CSS, replacing the tags with what you want your markup to be.

Code:
.adminmarkup
{
color:orange;
font-weight: bold;
Text-Decoration: Underline;
}
Then for your new opening markup:
Code:
<span class="adminmarkup">
And closing markup:
Code:
</span>
This is (obviously) what I use for my administrator group markup. Change the "admin" to whichever group you're creating the markup for.

Similar Mods

Username Management Addon - Latest Username Changes on Forumhome vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024