Notifications
Clear all

Style [Solved] [CSS] Coloring with group id?

7 Posts
2 Users
3 Reactions
906 Views
ZiT3K
Posts: 92
Topic starter
(@zit3k)
Estimable Member
Joined: 3 years ago

Hi!

How can the color of the boxed text be colored with the color of the group in the space shown in the image?

Thank you in advance for your help!

(Right click to open image in new tab.)

6 Replies
Chris
Posts: 3647
(@chris)
Famed Member
Joined: 3 years ago

@zit3k,

Try this:

#wpforo #wpforo-wrap .wpforo-profile-wrap .wpf-username {
    border: 2px solid #643c14;
    padding: 2px 10px 2px 10px;
    margin-left: 2px;
}
5 Replies
ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

@chris

Isn't that going to be brown?

I want to achieve that in user groups e.g. the OWNER rank is red, and where I have framed the name, also display the color of the user group.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3647

@zit3k,

You can change the color,

#643c14 is the color code so, just change it, and you will get what you want.

ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

I want usernames to be automatically colored with the appropriate colors assigned to user groups.

https://kepkuldes.com/image/J81ayq

For example:

#wpforo #wpforo-wrap .wpforo-profile-wrap .wpf-username {
color: #group_id;
}

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3647

@zit3k,

I don't think that you can set User's Username Color at Account page by their Usergroup Color with CSS.

ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

@chris

Yes, I guessed, because on the other side, I had to type in the HTML to look at the gruop IDs and assign colors to the IDs in CSS.
But it's not that important right now.
Thanks.