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.
The forum of the forums
4 posters

    Target name

    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Target name

    Post by Hert Tue 27 Jan - 18: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 Wed 28 Jan - 0:40; edited 1 time in total
    Ikerepc
    Ikerepc
    Active Poster


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

    Solved Re: Target name

    Post by Ikerepc Tue 27 Jan - 19:09

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


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Target name

    Post by Hert Tue 27 Jan - 22: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.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: Target name

    Post by _Twisted_Mods_ Tue 27 Jan - 23:30

    you was close

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


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Target name

    Post by Hert Tue 27 Jan - 23: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?
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: Target name

    Post by _Twisted_Mods_ Wed 28 Jan - 0:35

    try one of these

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

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


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Target name

    Post by Hert Wed 28 Jan - 0:39

    The second one works, thank you!

    Problem is here by solved ~
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Target name

    Post by SLGray Wed 28 Jan - 2:46

    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.

      Current date/time is Wed 13 Nov - 17:39