I don't understand what is wrong, as similar code has worked for me before. I've created a div tag and styled it. But for some reason the hover feature in CSS doesn't affect it, and I tried adding jQuery code but the .mouseenter/.animate features don't work with it either. You can see the result of the code at this link.
The HTML code:
<head>
<meta charset="utf-8">
<meta name="description" content="This is intended as a page to test different designs and layouts.">
<link rel="stylesheet" href="testStyle.css" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type = "text/javascript" src = "test.js"></script>
<title>
Test 1
</title>
</head>
<body>
<div></div>
</body>
The CSS code:
html{
background-color : #000000 ;
}
div{
position : absolute ;
height : 50px ;
width : 50px ;
top : 50% ;
left : 50% ;
border : 1px solid #FFFF00;
border-radius : 50% ;
background-color : #FEFFBF ;
box-shadow : 0 0 40px #FEFFBF;
}
div:hover{
background-color : '#0000FF' ;
}
The JavaScript/jQuery code:
$(document).ready(function() {
$('div').mouseenter(function() {
$(this).animate({
background-color : '#0000FF' ;
}) ;
}) ;
$('div').mouseleave(function(){
$(this).animate({
background-color : '#FEFFBF' ;
}) ;
}) ;
});
background-color->"background-color"({backgroundColor:'#FEFFBF'});