MyBB Community Forums

Full Version: Colored Prefix Background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want background color to prefix.
pls give me tutorial how to make it.
thanks
When creating a new thread prefix, set the display format to something like this:

<span class="prefix prefix-whatever">PREFIX HERE</span>

Then you can modify how it's displayed within your global.css using something like the below:

.prefix {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
}

.prefix-whatever {
    background: red;
    color: #ffffff;
}
repped.
thanks man.

it will creat single background color prefix.

but

How can i create different different color prefix??
just change prefix-whatever to something different and add a new block for it to the CSS.
ok.
wow.thanks man.
pls read my previous pm and make it.

Is there any way that thread prefix seen only in selected forum and few prefix only use by admin?