Target name Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
4 posters

    Target name

    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    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
    Ikerepc
    Ikerepc
    Active Poster


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

    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?
    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    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.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: Target name

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

    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 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?
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    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;
    }
    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Target name

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

    The second one works, thank you!

    Problem is here by solved ~
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    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.