username color markup help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dethfire
    Senior Member
    • Mar 2003
    • 475
    • 3.8.x

    username color markup help

    I have set colors for all usergroups as most people do. The problem is that a new style I am using puts the username sometimes in a light background and sometimes in a dark. Because the markup is stored in a variable there is no way to access it in the template and in many instance the username is unreadable because it blends into the background. any tricks for handling this?
    http://www.physicsforums.com
  • BirdOPrey5
    Senior Member
    • Jul 2008
    • 9613
    • 5.6.3

    #2
    Yes, a common issue..

    Instead of adding color directly to the username instead make the username markup a class-

    Bad way
    <span style="color:red;">USERNAME</span>

    Good Way
    <span class="myusergroup1">USERNAME</span>


    And then in each style in the additional css boxes on All Style Options you define the color for that class.

    .usergroup1 {color:red;}

    and in another style the same class may be

    .usergroup1 {color:white;}

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...