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.

Target name

View previous topic View next topic Go down

Solved Target name

Post by Hert on Tue 27 Jan - 12:08

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 Tue 27 Jan - 18:40; edited 1 time in total

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 on Tue 27 Jan - 13:09

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

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Target name

Post by Hert on Tue 27 Jan - 16:41

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
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_ on Tue 27 Jan - 17:30

you was close

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Target name

Post by Hert on Tue 27 Jan - 17:44

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
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_ on Tue 27 Jan - 18:35

try one of these

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

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Target name

Post by Hert on Tue 27 Jan - 18:39

The second one works, thank you!

Problem is here by solved ~

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 on Tue 27 Jan - 20:46

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 : 36691
Reputation : 2445
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