The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[CSS Coding] Username Color Issue

2 posters

Go down

Solved [CSS Coding] Username Color Issue

Post by Guest August 13th 2015, 7:19 pm

Technical Details

Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://draxgd.forumotion.com

Description of problem

I was going to make some groups hidden to make room for some more and I wanted to keep the username to keep their colors and therefore used this CSS code.

Code:
a[href="/u17"], a[href="/u17"] span, a[href="/u17"] span strong {
  color: #FF8605;
}

The problem was it doesn't work in the Chatbox. It shows their default colors. I was wondering if there was a way to fix this. Thanks!


Last edited by Draxion on August 13th 2015, 8:49 pm; edited 1 time in total
avatar
Guest
Guest


Back to top Go down

Solved Re: [CSS Coding] Username Color Issue

Post by Ange Tuteur August 13th 2015, 7:44 pm

So it works in the chatbox, you need to add the following.
Code:
span[data-user="17"]

to make :
Code:
a[href="/u17"], a[href="/u17"] span, a[href="/u17"] span strong, span[data-user="17"] {
  color: #FF8605;
}
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: [CSS Coding] Username Color Issue

Post by Guest August 13th 2015, 8:49 pm

Works perfectly! Thanks!
avatar
Guest
Guest


Back to top Go down

Solved Re: [CSS Coding] Username Color Issue

Post by SLGray August 13th 2015, 8:52 pm

Topic solved and archived


[CSS Coding] Username Color Issue Slgray10

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

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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