Menu
[CODE]#someDiv input:hover,
#someDiv input:active {
background: #FFF5C1;
}
The above CSS code will allows the background of an input box to change while the user moves their mouse over and clicks on the box itself.
However, when the user starts typing in the box and moves their mouse away from the box the background changes back to a default #FFFFFF (white).
What would I need to do in order for the colour to stay #FFF5C1 (yellow) when the user is typing in the box as well? As I’ve mentined before I already have the :hover and :active set up in my CSS syntax.