How to change this code? 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.
5 posters

    How to change this code?

    avatar
    jarn
    Forumember


    Posts : 76
    Reputation : 1
    Language : English

    Solved How to change this code?

    Post by jarn Mon Oct 06, 2014 1:04 pm

    Code:
    a span[style="color:#990099"] strong:hover:after {
      content:"Moderator";
      font-size:10px;
      color:#000;
      background:#FFF;
      border:1px solid #EEE;
      box-shadow:1px 1px 2px #000;
      border-radius:4px;
      padding:3px;
      position:absolute;
      bottom:5px;
      right:0px;
      display:inline-block;
      white-space:nowrap;
      z-index:1;
      margin:-25px;
    }
    a span[style="color:#990099"] strong { position:relative }

    How do I change this code so that rather than groups, it can be used for individual users?
    avatar
    Guest
    Guest


    Solved Re: How to change this code?

    Post by Guest Mon Oct 06, 2014 1:21 pm

    Hello jarn,
    Try adding this code to your CSS. Just be sure to change the "#" in the "u#" to the user number. You can find this number by clicking their profile and you can see it after your domain there should be a "/u#" and just copy that number and replace the "#" in the code and click save. If this doesn't work, let me know so I can make some adjustments!


    Code:
    a[href="u#"] strong:hover:after {
      content:"Moderator";
      font-size:10px;
      color:#000;
      background:#FFF;
      border:1px solid #EEE;
      box-shadow:1px 1px 2px #000;
      border-radius:4px;
      padding:3px;
      position:absolute;
      bottom:5px;
      right:0px;
      display:inline-block;
      white-space:nowrap;
      z-index:1;
      margin:-25px;
    }
    a span[style="color:#990099"] strong { position:relative }


    Hope this helps!


    -Jad
    avatar
    jarn
    Forumember


    Posts : 76
    Reputation : 1
    Language : English

    Solved Re: How to change this code?

    Post by jarn Tue Oct 07, 2014 1:16 pm

    Nothing happened, unfortunately.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: How to change this code?

    Post by SLGray Tue Oct 07, 2014 1:28 pm

    Did you change the u# part?



    How to change this code? Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    jarn
    Forumember


    Posts : 76
    Reputation : 1
    Language : English

    Solved Re: How to change this code?

    Post by jarn Tue Oct 07, 2014 1:58 pm

    Yes.
    avatar
    Guest
    Guest


    Solved Re: How to change this code?

    Post by Guest Tue Oct 07, 2014 2:06 pm

    jarn wrote:Yes.
    Hello Jarn,
    Could you please provide us the code that you used so we can see if something went wrong with the code I provided you?

    -Jad
    Ramdaman
    Ramdaman
    Active Poster


    Male Posts : 1590
    Reputation : 99
    Language : English, Albanian, Macedonian, Russian | HTML, CSS
    Location : New York City

    Solved Re: How to change this code?

    Post by Ramdaman Tue Oct 07, 2014 2:11 pm

    Also, you didn't remove the "u" did you? Only replace the "#"
    avatar
    jarn
    Forumember


    Posts : 76
    Reputation : 1
    Language : English

    Solved Re: How to change this code?

    Post by jarn Tue Oct 07, 2014 2:40 pm

    Code:
    a[href="u1"] strong:hover:after {
      content:"HEAD ADMIN";
      font-size:10px;
      color:#000;
      background:#FFF;
      border:1px solid #EEE;
      box-shadow:1px 1px 2px #000;
      border-radius:4px;
      padding:3px;
      position:absolute;
      bottom:5px;
      right:0px;
      display:inline-block;
      white-space:nowrap;
      z-index:1;
      margin:-25px;
    }
    a span[style="color:#006E8A"] strong { position:relative }
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: How to change this code?

    Post by Ange Tuteur Tue Oct 07, 2014 3:03 pm

    Jadster, you forgot to modify the last Rule's selector :
    Code:
    a span[style="color:#006E8A"] strong { position:relative }

    I'll place it at the top so it's easier to find :

    You can add it to your sheet too, jarn.
    Code:
    a[href="/u1"] span strong { position:relative }
    a[href="/u1"] span strong:hover:after {
      content:"HEAD ADMIN";
      font-size:10px;
      color:#000;
      background:#FFF;
      border:1px solid #EEE;
      box-shadow:1px 1px 2px #000;
      border-radius:4px;
      padding:3px;
      position:absolute;
      bottom:5px;
      right:0px;
      display:inline-block;
      white-space:nowrap;
      z-index:1;
      margin:-25px;
    }

    That rule helps keep the caption, or "tooltip" bound to the username. If the name is not Relative the tooltip will go to the edge of the screen.
    avatar
    Guest
    Guest


    Solved Re: How to change this code?

    Post by Guest Tue Oct 07, 2014 3:18 pm

    Oh ok! Thank you so much Ange! I completely missed over that.

    -Jad
    avatar
    jarn
    Forumember


    Posts : 76
    Reputation : 1
    Language : English

    Solved Re: How to change this code?

    Post by jarn Tue Oct 07, 2014 4:52 pm

    Thanks, it works now!
    Base
    Base
    Forumaster


    Male Posts : 10383
    Reputation : 1695
    Language : English and French
    Location : United Kingdom, England

    Solved Re: How to change this code?

    Post by Base Tue Oct 07, 2014 5:17 pm

    Solved => Archived