The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I change a Username's color on the chatbox? CSS

View previous topic View next topic Go down

Solved How can I change a Username's color on the chatbox? CSS

Post by Just Call me Vlad on September 9th 2015, 4:14 am

I need to know how to change the color of my username on the chatbox. I'm using CSS Spreadsheet.


Last edited by Just Call me Vlad on September 12th 2015, 2:44 am; edited 1 time in total

Just Call me Vlad
New Member

Posts : 9
Reputation : 1
Language : English!

http://pb2forumotion.com

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by SLGray on September 9th 2015, 5:10 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by Just Call me Vlad on September 9th 2015, 5:49 am

I can't seem to find a specific code for a chatbox username color change. Can someone just list it down here?

Just Call me Vlad
New Member

Posts : 9
Reputation : 1
Language : English!

http://pb2forumotion.com

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by Ange Tuteur on September 9th 2015, 10:23 am

Hi @Just Call me Vlad,

You can use the following CSS rule. Wink
Code:
span[data-user="1"] {
  color:#F00;
}

Change the 1 so that it refers to the id of the user you want to modify.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by Just Call me Vlad on September 10th 2015, 1:39 am

Thanks! I have another question though,

Is there a way to hover over my username and it changes the color AND glow? For example, I currently have a White Username and a Red Glow. But I want someone to hover over it and they get a RED username and a WHITE glow. Any way to do that on the forum and chat box?

Just Call me Vlad
New Member

Posts : 9
Reputation : 1
Language : English!

http://pb2forumotion.com

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by Ange Tuteur on September 10th 2015, 10:36 am

Add the :hover pseudo class to the selector, then define your style properties in the rule. Smile
Code:
span[data-user="1"]:hover {
  color:#F00;
  text-shadow:0 0 3px #FFF;
}

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by Just Call me Vlad on September 12th 2015, 2:43 am

Thanks m8. Smile

Just Call me Vlad
New Member

Posts : 9
Reputation : 1
Language : English!

http://pb2forumotion.com

Back to top Go down

Solved Re: How can I change a Username's color on the chatbox? CSS

Post by SLGray on September 12th 2015, 4:15 am

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum