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.

Target name

4 posters

Go down

Solved Target name

Post by Hert January 27th 2015, 7:08 pm

Hello,

So you have the following CSS code:
Code:
a.mainmenu[href="/"] {
color: #000000;
}
This code targets the mainmenu and if you add /search it will target that link - I was wondering if this code is also possible for users, perhaps something like:
Code:
a.member[href="/u1"] {
color: #000000;
}

So far I haven't found the right name yet, if it even exists. I've tried: member, memberlist, user and userlist. Sadly none of them seem to work :'(
I was wondering if is even possible and if so, if it also effects users that would have a rank color and you change it for that indivual user?

Love & Rockets,
Hert.


Last edited by Hert on January 28th 2015, 1:40 am; edited 1 time in total
Hert
Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Target name

Post by Ikerepc January 27th 2015, 8:09 pm

What exactly you want? Navbar link to user profile or to memberlist?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Target name

Post by Hert January 27th 2015, 11:41 pm

I want to change the color of a username from a specifik user and I thought if I could also do it this way. The user is in the admin group and that is like group number one, so that color will overwrite other colors - so I can't make another group with another color and just put him in there.
So I figured, since you can target certain specific links from the nav bar maybe you can also target specific users through CSS.
Hert
Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Target name

Post by _Twisted_Mods_ January 28th 2015, 12:30 am

you was close

Code:
a[href="/u1"] {
color: #000000;
}
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Target name

Post by Hert January 28th 2015, 12:44 am

O I was indeed close yes!
Sadly it seems that a rank color is dominant over this code, if you get what I mean. This there anyway to change this or is it eh... Impossible?
Hert
Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Target name

Post by _Twisted_Mods_ January 28th 2015, 1:35 am

try one of these

Code:
a[href="/u1"] {
color: #000000!important;
}

Code:
a[href="/u1"] span{
color: #000000!important;
}
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Target name

Post by Hert January 28th 2015, 1:39 am

The second one works, thank you!

Problem is here by solved ~
Hert
Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Target name

Post by SLGray January 28th 2015, 3:46 am

Topic solved and archived


Target name 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 : 51482
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