Chat room Rank Badge in IE 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.
2 posters

    Chat room Rank Badge in IE

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Chat room Rank Badge in IE

    Post by Ape Sun 13 Sep - 23:10

    I have this code for ranks in the chat box and all works well all but in IE the code leaves out the icon and gives a space where it should be.

    Code:
    .user[style="color:#FF0000"] span:before, #chatbox_members span[style="color:#FF0000"] span:before {
      content:url(http://i722.photobucket.com/albums/ww222/Apechat/1a_1.png)!important;
      margin-left:-16px !important;
      vertical-align: Bottom!important;
    }
    .user[style="color:#993A0E"] span:before, #chatbox_members span[style="color:#993A0E"] span:before {
      content:url(http://i722.photobucket.com/albums/ww222/Apechat/vqg1.png)!important;
      margin-left:-16px !important;
      vertical-align:Bottom !important;
    }

    What am i Missing to get this code to work in IE ??

    This is what it should look like
    Chat room Rank Badge in IE Captur25

    much thanks to any one that can help me on this one

    APE



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Mon 14 Sep - 6:27

    Hey @Ape,

    This would come down to IE being special ; Instead of keeping the colors in the attributes as they were authored, IE likes to convert them to RGB. So if you really want it to work on IE, you need to include another set of selectors for your groups colors in RGB format :
    Code:
    user[style="color:#FF0000"] span:before, #chatbox_members span[style="color:#FF0000"] span:before,
    .user[style*="rgb(255, 0, 0)"] span:before, #chatbox_members span[style*="rgb(255, 0, 0)"]  span:before {
      content:url(http://i722.photobucket.com/albums/ww222/Apechat/1a_1.png)!important;
      margin-left:-16px !important;
      vertical-align: Bottom!important;
    }

    .user[style="color:#993A0E"] span:before, #chatbox_members span[style="color:#993A0E"] span:before,
    .user[style*="rgb(153, 58, 14)"] span:before, #chatbox_members span[style*="rgb(153, 58, 14)"] span:before {
      content:url(http://i722.photobucket.com/albums/ww222/Apechat/vqg1.png)!important;
      margin-left:-16px !important;
      vertical-align:Bottom !important;
    }

    This should help if you have anymore groups : http://hex.colorrrs.com/

    Also, I recommend just doing this for IE :
    Code:
    [style*="rgb(153, 58, 14)"]

    The asterisk means "contains" so it only looks for the color value instead of a whole match.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Mon 14 Sep - 22:42

    @Ange Tuteur the code you gave is not working it messes up the forum skin. i think something is missing but i can't work it out lol



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Mon 14 Sep - 23:44

    Hum.. I can't figure it out ; the first code box looks valid. You copied it directly, yes ? I might need to take a closer look... blackeye
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Mon 14 Sep - 23:45

    do you want an admin account to look it over ? i added the code as it was here and it made the full CSS system crash i will add it now so you can see Wink



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Tue 15 Sep - 0:07

    @Ape upon further inspection I was missing a decimal on the first class ( .user ) try now :
    Code:
    .user[style="color:#FF0000"] span:before, #chatbox_members span[style="color:#FF0000"] span:before,
    .user[style*="rgb(255, 0, 0)"] span:before, #chatbox_members span[style*="rgb(255, 0, 0)"] span:before {
      content:url(http://i722.photobucket.com/albums/ww222/Apechat/1a_1.png)!important;
      margin-left:-16px !important;
      vertical-align: Bottom!important;
    }

    .user[style="color:#993A0E"] span:before, #chatbox_members span[style="color:#993A0E"] span:before,
    .user[style*="rgb(153, 58, 14)"] span:before, #chatbox_members span[style*="rgb(153, 58, 14)"] span:before {
      content:url(http://i722.photobucket.com/albums/ww222/Apechat/vqg1.png)!important;
      margin-left:-16px !important;
      vertical-align:Bottom !important;
    }


    Sorry I did not take a closer look before. I'm coming down from too much coffee. ( jitters and lack of sleep ) Rolling Eyes Tonight I'll sleep like a baby though.. Razz
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Tue 15 Sep - 0:15

    Nope still the same
    with the code you gave the theme looks like
    Chat room Rank Badge in IE Captur27

    with old code it looks like
    Chat room Rank Badge in IE Captur28



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Tue 15 Sep - 10:54

    I tested it on my one forum, but I encounter no problems or saw anything that could cause one. It's just an assumption, but is what I gave you putting your sheet over the character limit ? If not that, try changing the placement of the code. e.g. place it somewhere else such as the very top or bottom of your sheet to see if the problem persists.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Wed 16 Sep - 1:21

    Nope if i put it at the bottom and use all the code i don't get any icon in the chat at all but as soon as i use my old code it is back again but not in IE maybe i could change the code to a javascript ??

    or by rank name not color ??



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Wed 16 Sep - 1:31

    ok found the problem

    I had the forum set to
    Optimize your CSS YES i removed the YES and PUT it as No and now its working fine

    Thank you @Ange Tuteur




    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Wed 16 Sep - 1:34

    APE wrote:ok found the problem

    I had the forum set to
    Optimize your CSS YES i removed the YES and PUT it as No and now its working fine

    Thank you @Ange Tuteur

    Oooh I didn't think of that !! I double checked it here and it said "valid" I thought I was going coucou. Shocked

    Well, I'm glad you figured out the problem ! Chat room Rank Badge in IE 1852325475
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Wed 16 Sep - 3:33

    just one more thing if you have time lol

    how to i center this more so it's more in line as you can see it's sort of up high
    Chat room Rank Badge in IE Captur29



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Fri 18 Sep - 0:32




    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Fri 18 Sep - 13:08

    @Ape sorry for the delay, I must've missed this. Shocked

    You want the name + text centered vertically, correct ? if so, this CSS should work :
    Code:
    #chatbox .cb-avatar {
      float:none !important;
      display:inline-block;
    }
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Fri 18 Sep - 20:06

    it moved the Name and the badge down but the text is not right Sad
    Chat room Rank Badge in IE Captur31



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Fri 18 Sep - 20:21

    Hmm.. I just noticed but in your icon CSS, try changing bottom :
    Code:
    vertical-align:Bottom !important;

    to middle :
    Code:
    vertical-align:middle !important;
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Fri 18 Sep - 20:25

    Nope that did not change nothing Sad



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Chat room Rank Badge in IE

    Post by Ange Tuteur Fri 18 Sep - 21:47

    Oooh I think I found what it is. Look for this in your CSS :
    Code:
    .user-msg .user .chatbox-username, #chatbox_members li .chatbox-username {
      font-size:12px;
    margin-left:12px !important;
    vertical-align: Bottom!important;
    }

    and change vertical alignment from Bottom to middle.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19330
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Chat room Rank Badge in IE

    Post by Ape Fri 18 Sep - 23:52

    Thats got it thank you

    Topic solved and archived



    Chat room Rank Badge in IE Left1212Chat room Rank Badge in IE Center11Chat room Rank Badge in IE Right112
    Chat room Rank Badge in IE Ape_b110
    Chat room Rank Badge in IE Ape1010