s_ff_da_b_ff Posted July 9, 2008 Share Posted July 9, 2008 I know how to change the color of a hyperlink when you mouse over it-- How ever I want to know how to change the color of the hyperlink and also the blocks background colors when hovering over. Can anyone help me out? Quote Link to comment https://forums.phpfreaks.com/topic/113900-hover-help/ Share on other sites More sharing options...
jcombs_31 Posted July 9, 2008 Share Posted July 9, 2008 a { background-color: something; } a:hover { background-color: something else; } Quote Link to comment https://forums.phpfreaks.com/topic/113900-hover-help/#findComment-585282 Share on other sites More sharing options...
Wolphie Posted July 9, 2008 Share Posted July 9, 2008 You can also add hover properties to elements other than anchors. Quote Link to comment https://forums.phpfreaks.com/topic/113900-hover-help/#findComment-585292 Share on other sites More sharing options...
haku Posted July 9, 2008 Share Posted July 9, 2008 You can, but hover only works on anchors in IE6. You will need to use javascript if you want to create the same effect in IE6. Although I don't think it's worth it myself. Better to give extra for people who don't use it, rather than catering to those who do! But some clients aren't satisfied with that. Quote Link to comment https://forums.phpfreaks.com/topic/113900-hover-help/#findComment-585394 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.