Focus CSS tag in Internet Explorer 8
Posted
by Sam
on Stack Overflow
See other posts from Stack Overflow
or by Sam
Published on 2010-06-18T12:12:40Z
Indexed on
2010/06/18
12:23 UTC
Read the original article
Hit count: 254
This is driving me nuts.
http://www.cssdrive.com/index.php/examples/exampleitem/focus_pseudo_class
This is an example of using the hover pseudo-class. Works fine in Chrome and IE. When I save locally it works fine in Chrome but won't work in IE. What am I doing wrong!?
<link rel="Stylesheet" href="style.css" />
<form>
<p>1) Name:<br />
<input type="text" size="40"></p>
<p>2) Email address:<br />
<input type="text" size="40"></p>
<p>3) Comments:<br />
<textarea rows="5" name="comments" cols="45" wrap="virtual"></textarea></p>
<p><input id="actualsubmit" type="submit" value="Submit"></p>
</form>
style.css:
input:focus, textarea:focus{
background-color: lightyellow;
}
© Stack Overflow or respective owner