It’s not totally clear what you want here, but it sounds like you want the background color of the parent element to change when the input has fucus. CSS doesn’t allow for styling a parent like that. There might be some tricky workarounds for this, but it’s not worth it, IMHO.
The problem I’m having is that the above code is actually a hover-based tooltip, but on BlackBerry touch screen browsers (tested in three different OS versions) the tooltip will close when I click in an input box. On every other browser it doesn’t, so I’m guessing it just assumes the element is no longer hovered over.
I thought it best to do it like this rather than mentioning the BB browser and complicating things. If I can somehow ensure CSS thinks .outer is still hovered when I click the input box then it should work (obviously it does in most browsers, but somehow put in extra code as though it didn’t).
I think my solution demonstrated here would work, but I’m guessing that idea isn’t possible.