Im trying to make a div box to hover offsetted from the original box, but it doesnt seem to work.
[url]http://www.xgs-gaming.com/studentbyen/hover.php
[code=html]
<html>
<head>
<style type=”text/css”>
#outerBox {
position: relative;
overflow: hidden;
width: 500px;
height: 500px;
margin: 100px auto 0px auto;
background-color: gray;
}
#innerBox {
position: absolute;
top: 100px;
left: 100px;
width: 70px;
height: 70px;
background-color: red;
}
#innerBox:hover {
display: block;
position: absolute;
top: 200px;
left: 200px;
background-color: yellow;
}
</style>
</head>
<body>
<div id=”outerBox”>
<div id=”innerBox”></div>
</div>
</body>
</html>