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

    Nav Bar hover ( custom buttons)

    avatar
    Luis Ferreira
    Forumember


    Posts : 53
    Reputation : 1
    Language : Poruguese

    In progress Nav Bar hover ( custom buttons)

    Post by Luis Ferreira January 9th 2016, 8:16 am

    Forum version : Phpbb2
    Position : Administrator
    Concerned browser(s) : Google Chrome
    Who the problem concerns : all
    Forum link : http://gamemunity.team-talk.net/


    I have this code to change image when hover but it only works on the regular buttons, how can i do to costum buttons like "http://gamemunity.team-talk.net/h6-twitch" and soo ?


    Code:
    #i_icon_mini_message{width:86px;height:32px;background:url(http://i21.servimg.com/u/f21/18/88/10/81/messag11.png) no-repeat 0 0;}
    #i_icon_mini_message:hover{background:url(http://i68.servimg.com/u/f68/18/88/10/81/5654610.png) no-repeat 0 0;}
    SLGray
    SLGray
    Administrator
    Administrator


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

    In progress Re: Nav Bar hover ( custom buttons)

    Post by SLGray January 9th 2016, 1:33 pm

    Have you fixed your issue?  I noticed all the buttons have a hover effect in the navigation menu.



    Nav Bar hover ( custom buttons) Slgray10

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


    Posts : 53
    Reputation : 1
    Language : Poruguese

    In progress Re: Nav Bar hover ( custom buttons)

    Post by Luis Ferreira January 11th 2016, 12:16 pm

    So i made this code, its kinda buggy but i will correct it later

    Code:
    a.mainmenu:hover{
        background-color: #FF7F50
        border: 1px solid black;
        opacity: 0.99;
        filter: alpha(opacity=100)
    }
     


    its stay like this (the orange underline) :

    Nav Bar hover ( custom buttons) Sem_ty18
    10spetter10
    10spetter10
    Forumember


    Posts : 195
    Reputation : 82
    Language : Dutch

    In progress Re: Nav Bar hover ( custom buttons)

    Post by 10spetter10 January 11th 2016, 1:04 pm

    You can try something like this to select the other links
    Code:
    a.mainmenu[href*="/h6-twitch"] img
    .
    avatar
    Luis Ferreira
    Forumember


    Posts : 53
    Reputation : 1
    Language : Poruguese

    In progress Re: Nav Bar hover ( custom buttons)

    Post by Luis Ferreira January 11th 2016, 2:03 pm

    like this ?

    Code:
    a.mainmenu[href*="/h6-twitch"] {
    width:86px;
    height:32px;
    background:url(http://i21.servimg.com/u/f21/18/88/10/81/messag11.png) !important no-repeat 0 0;
    }
    a.mainmenu[href*="/h6-twitch"]:hover {
    width:86px;
    height:32px;
    background:url(http://i68.servimg.com/u/f68/18/88/10/81/5654610.png) !important no-repeat 0 0;
    }
     


    doesn't work @10spetter10
    10spetter10
    10spetter10
    Forumember


    Posts : 195
    Reputation : 82
    Language : Dutch

    In progress Re: Nav Bar hover ( custom buttons)

    Post by 10spetter10 January 11th 2016, 2:42 pm

    In your first code you work with the images so you should add
    Code:
    img
    after the code I sent. But I'm not fully understanding why, do you just want an orange border when you hover the button?
    avatar
    Luis Ferreira
    Forumember


    Posts : 53
    Reputation : 1
    Language : Poruguese

    In progress Re: Nav Bar hover ( custom buttons)

    Post by Luis Ferreira January 11th 2016, 4:19 pm

    an underline but i only can with that code idk why
    avatar
    Luis Ferreira
    Forumember


    Posts : 53
    Reputation : 1
    Language : Poruguese

    In progress Re: Nav Bar hover ( custom buttons)

    Post by Luis Ferreira January 23rd 2016, 6:04 am

    bump
    Rhino.Freak
    Rhino.Freak
    Helper
    Helper


    Male Posts : 1248
    Reputation : 104
    Language : English
    Location : Mumbai, India

    In progress Re: Nav Bar hover ( custom buttons)

    Post by Rhino.Freak January 23rd 2016, 8:06 am

    Luis Ferreira wrote:like this ?

    Code:
    a.mainmenu[href*="/h6-twitch"] {
    width:86px;
    height:32px;
    background:url(http://i21.servimg.com/u/f21/18/88/10/81/messag11.png) !important no-repeat 0 0;
    }
    a.mainmenu[href*="/h6-twitch"]:hover {
    width:86px;
    height:32px;
    background:url(http://i68.servimg.com/u/f68/18/88/10/81/5654610.png) !important no-repeat 0 0;
    }
     

    This code should work but first make SURE that you haven't added any image for custom links you added in Admin Panel.
    Remove image from there and THEN use this code. I suggest to get rid of !important too.
    If you have an image already, this is a BACKGROUND image so it won't show up as it's hidden underneath it.

      Current date/time is November 11th 2024, 1:53 pm