Azu Posted November 7, 2007 Share Posted November 7, 2007 When :focus and :hover both change the background, it seems that :hover always overrides :focus. How can I make it so that :focus will override :hover? Link to comment https://forums.phpfreaks.com/topic/76391-how-do-i-make-focus-override-hover/ Share on other sites More sharing options...
phpQuestioner Posted November 12, 2007 Share Posted November 12, 2007 focus is the same thing as active; you actually have to click on it before the CSS can display. hover is first because you mouse over before you click on something. Link to comment https://forums.phpfreaks.com/topic/76391-how-do-i-make-focus-override-hover/#findComment-389678 Share on other sites More sharing options...
Azu Posted November 12, 2007 Author Share Posted November 12, 2007 Thanks I'm wandering how to make it so hover doesn't override focus though. Like so if you click on the field, (and thus have focus on it) then I want the :focus to take priority over the :hover, instead of the :hover overriding it.. Link to comment https://forums.phpfreaks.com/topic/76391-how-do-i-make-focus-override-hover/#findComment-389683 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.