Forum Moderators: open
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>position fixed</title>
<style type="text/css">
body {
background-color:#f0f0f0;
}
#container {position:relative;
width:960px;
height:1000px;
padding:20px;
border:1px solid #999;
margin:auto;
background-color:#fff;
box-shadow:#666 4px 4px 12px;
}
form {
position:fixed;
top:200px;
right:15px;
width:300px;
padding:10px;
border:1px solid #999;
background-color:#fff;
box-shadow:#666 4px 4px 12px;
}
</style>
</head>
<body>
<div id="container">
this is for the page contents.
</div>
<form action="#">
<fieldset>
<legend>this is the form</legend>
</fieldset>
</form>
</body>
</html>