Hi,
Since making my original post I have solved the problem - I was right, it was a bit of stupidity on my part. Anyway the problem has been solved and here is the new code.
loginPage_layout.css -
-
/* General Document Format */
-
html, body, ul, ol, li, p, blockquote, q,
-
h1, h2, h3, h4, h5, h6, fieldset, legend,
-
form, label, a, div, img, dd, dt, dl, input, span, img
-
{
-
margin : 0px;
-
padding : 0px;
-
border : 0px;
-
}
-
-
body
-
{
-
font-family : verdana, "trebuchet MS", helvetica, sans-serif;
-
font-size : 11px;
-
line-height : 1.637;
-
margin : 0px 0px;
-
padding : 0px;
-
height : 100%;
-
text-align : center ;
-
}
-
-
/* Containers */
-
div.loginContainer
-
{
-
width : 315px ;
-
height : 212px ;
-
margin-left : auto ;
-
margin-right : auto ;
-
margin-top : 194px ;
-
margin-bottom : 194px ;
-
background-image : url("../image/LoginFormBackground.png") ;
-
background-repeat : no-repeat ;
-
}
-
-
div.username
-
{
-
position : relative ;
-
left : 15px ;
-
width : 230px ;
-
top : 70px ;
-
height : 26px ;
-
}
-
-
div.password
-
{
-
position : relative ;
-
left : 15px ;
-
width : 230px ;
-
top : 80px ;
-
height : 26px ;
-
}
-
-
div.loginButton
-
{
-
position : relative ;
-
left : 200px ;
-
width : 100px ;
-
top : 120px ;
-
height : 28px ;
-
}
-
-
/* Form Layout and Presentation */
-
-
input.textBased
-
{
-
border : solid 1px #808080 ;
-
height : 18px ;
-
width : 150px ;
-
margin-left : 2px ;
-
}
-
ie_layout.css
-
div.loginButton
-
{
-
left : 100px ;
-
}
-
And the HTML is:
loginPage.html
[html]
<head>
<!-- no meta tags as this is not intended to be found by a serch system -->
<link rel="stylesheet" type="text/css" href="style/responsetracker_colour.css" />
<link rel="stylesheet" type="text/css" href="style/loginpage_layout.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="style/ie_layout.css"/>
<![endif]-->
</head>
<body>
<div class="loginContainer">
<form name="frm_Login" method="post" action="mainpage.php">
<div class="username">
Username: <input class="textBased" type="text" id="username" title="Please enter your ResponseTracker username" />
</div>
<div class="password">
Password: <input class="textBased" type="password" id="access" title="Please enter your ResponseTracker password" />
</div>
<div class="loginButton">
<input name="login" type="image" src="image/loginButton.png" alt="Login" title="Click to login" onmouseover="this.style.cursor='pointer'" onclick="frm_Login.submit()"/>
</div>
</form>
</div>
</body>
[/html]
This results in the form being positioned on top of the image giving a much nicer look to the initial login page.
Many thanks
nathj
PS If you have a better way of doing this then please let me know