I'm having difficulty making this image fit inside the box, I want it to be independent of the size of the screen, the box always appears in the same place (OK) and the image inside fits the size of the box (HELP). >
Here is the code, mouseover
and div
of the box image:
<html>
<head>
<div style="position:fixed;right:35%;top:10px; left:35%; ">
<img src="http://i64.tinypic.com/id93qr.png"onmouseover="getElementById('descricaoo').style.display='block'" onmouseout="getElementById('descricaoo').style.display='none'"></a>
</div>
</head>
<body>
<div id="descricaoo" style="position:fixed; display:none; left:25%; top:25%; bottom:25%; right:25%;background:url(http://i66.tinypic.com/35a3frc.png) center no-repeat ; box-shadow:0 2px 5px #000; border-radius:5px;">
</div>
</body>
</html>
I need the picture to fit inside the box, please can anyone help? Link to the image that should appear in the box link .