MyBB Community Forums

Full Version: Is it possible to override the style of a specific text color?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Probable noob question, but there's a white theme at ZEJ and that obviously makes white text unreadable. I was wondering if I could override "white" to add a visibility background through CSS.
I'm gonna guess that you're talking about username styles for usergroups?

If so, for your usergroup styles just make them be like this:

<span class="admStyle">{username}</span>

and in your global.css for each theme have this:
.admStyle{
     color: #00FF55;
     font-weight: bold;
}

But obviously changing the color to the one you want.

If you aren't talking about usernames, then just change the color: property for the object you are referring to.
No I know how to do that; I did that on one of my other forums. What I mean is if someone uses [color=white] or [color=#FFFFFF] in a post. Since it displays as white on a white background, it's impossible to read.
^ you can use filters to change [color=white] to [color=black] and [color=#ffffff] to [color=#000000] .. etc
you can also do

.yourclass{
color:##;
}

.yournewclass{
Color:## !important;
}