I've been having trouble trying to figure out how to get a text box to keep a background when a cursor is in it. I thought that you would use either :activer :focus, but neither one worked for me. Here is an example of what I want to do: http://www.phpbb.com/styles/forum/index.php?style=221
Notice the search field in the top right of this phpBB forum, when you click on it, it stays one color. How do you do that in CSS?
Huh? Those boxes go through three shades of gray for me.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Yeah, but when you click inside the field, it stays the lightest of the three colors. Obviously it's using :hover to get one alternate color, but I can't figure out how they get the lightest color.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Hold on a sec. This feature seems to be working correctly for Firefox and Konqueror, but today I tested my site with IE and it is not working properly. It seems that most of the backgrounds that change on hover are not. This includes the hover and focus code that I'm using for the text boxes. Is there a way to fix this?
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Bookmarks