I've seen the other posts about this but I feel I'm missing something here.
This code does what I want which is to change the background on a hover on browsers that are not IE.
What is the IE fix/workaround for this?
This code does what I want which is to change the background on a hover on browsers that are not IE.
What is the IE fix/workaround for this?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" >
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
<style type="text/css" title="Default" media="screen">
#cont{
width: 500px;
}
#button{
border-bottom: 1px solid #0F0;
background: #ccccff;
display: block;
}
#button:hover{
background: #ffcccc;
}
</style>
</head>
<body>
<div id="cont">
<div id="button">
<a href="#">Link</a>
</div>
</div>
</body></html>