Focus CSS tag in Internet Explorer 8
- by Sam
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;
}