Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Contact form that scrolls up and down in the browser


birdbrain - 6:13 pm on Apr 15, 2012 (gmt 0)


Hi there CodeMonk3y,

and a warm welcome to these forums. ;)

Your problem can be resolved with CSS....

<!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>

birdbrain


Thread source:: http://www.webmasterworld.com/javascript/4441073.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com