I think the solusion the Professor suggested would answer your problem.
Another thing I think, and forgive me if I'm wrong, you perhaps haven't understood that left and top values don't always relate to the window.
If objects are absolutely positioned within a relatively positioned div for example, top:0; left:0; would position the objects in the top left of the containing div (not the top left of the window).
Check out this example.
HTML Code:
<html>
<head>
<style type="text/css">
body {
text-align: center;
}
#pond {
background: blue;
width: 300px;
height: 200px;
margin: 100px auto;
position: relative;
}
#duck {
background: yellow;
width: 50px;
height: 50px;
position: absolute;
top: 20px;
left: 80px;
}
</style>
</head>
<body>
<div id="pond">
<div id="duck"></div>
</div>
</body>
</html>
I hope this helps.
Bookmarks