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.

Nav Bar hover ( custom buttons)

4 posters

Go down

In progress Nav Bar hover ( custom buttons)

Post by Luis Ferreira January 9th 2016, 2:16 pm

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;}
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

Post by SLGray January 9th 2016, 7: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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

Post by Luis Ferreira January 11th 2016, 6: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
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

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

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

Posts : 195
Reputation : 82
Language : Dutch

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

Post by Luis Ferreira January 11th 2016, 8: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
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

Post by 10spetter10 January 11th 2016, 8: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?
10spetter10
10spetter10
Forumember

Posts : 195
Reputation : 82
Language : Dutch

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

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

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

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

Post by Luis Ferreira January 23rd 2016, 12:04 pm

bump
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

In progress Re: Nav Bar hover ( custom buttons)

Post by Rhino.Freak January 23rd 2016, 2:06 pm

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.
Rhino.Freak
Rhino.Freak
Helper
Helper

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

http://freetest.forumotion.net/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum