Description:- I encountered an issue with my HTML login page where I used an image for the username and password. Everything worked fine when I manually typed in the username and password, but when I selected the username from the auto-fill suggestions popup, it caused the image I used for the username to disappear. This problem occurred while using Google Chrome browser version 42.0.2311.135. Can anyone help me figure out what went wrong?
HTML Code:-
<html>
<head>
<title>Login</title>
</head>
<link href="style/style.css" rel ="stylesheet" type = "text/css" />
<body>
<div class="formpart">
<div class="mainform">
<h3><img src="images/edit.png" alt="" width="10px" height="10px" style="padding-right:5px">Admin Login</h3>
<ul class="text">
<label>Username</label>
<li><input name="username" type="text" class="user"></li>
<label>Password</label>
<li><input name="password" type="password" class="paswrd"></li>
<label></label>
<li class="rembr"><input name="" type="checkbox" value="">Remember me</li>
</ul>
<ul class="list2">
<li><input name="" type="submit" value="Log in"></li>
</ul>
</div>
</div>
</body>
</html>
Style-Sheet Code:-
/* CSS Document */
/* CSS Document */
#main .formpart
{
width:800px;
margin: 120px 0 0 500px;
padding: 0;
position: relative;
}
.formpart h2
{
margin:0px 0px 30px;
padding:0px;
padding-bottom:5px;
float:left;
font:normal 25px Arial, Helvetica, sans-serif;
color:#000000;
width:800px;
border-bottom:1px solid #1A446C;
}
.formpart .mainform
{
width:535px;
border:1px solid #ccc;
border-radius:5px;
background:#F9F9FB;
margin 0p 0px 0px 50px;
float:left;
}
.formpart .mainform h3
{
margin:0px;
padding:5px;
width:525px;
line-height:30px;
font:normal 13px Arial, Helvetica, sans-serif;
color:#3C3C3C;
float:left;
background:#F2F2F2;
border-radius:5px 5px 0px 0px;
border-bottom:1px solid #ccc;
}
.formpart .mainform ul.text
{
margin:70px 0px 0 50px;
padding:0px;
list-style:none;
width:500px;
}
.formpart .mainform ul.text li
{
margin:0px;
padding:0px 0px 10px;
float:left;
width:300px;
font:bold 13px Arial, Helvetica, sans-serif;
line-height:25px;
}
.formpart .mainform ul.text li.rembr
{
margin:0px 0px 20px 115px;
padding:0px 0px 10px;
float:left;
width:300px;
font:normal 12px Arial, Helvetica, sans-serif;
line-height:30px;
color:#6f6f6f;
}
.formpart .mainform ul.text label
{
margin:0px;
padding:0px;
float:left;
font:bold 15px Calibri;
color:#000;
width:120px;
}
.formpart .mainform ul.text input
{
margin:0px;
padding:0px 0px 0px 5px;
width:320px;
height:30px;
border:1px solid #ccc;
border-radius:5px;
}
.formpart .mainform ul.text input.user
{
margin:0px;
padding:0px 0px 0px 30px;
float:left;
width:250px;
font:bold 13px Arial, Helvetica, sans-serif;
line-height:25px;
background:url(../images/user.png) no-repeat;
background-position:left;
}
.formpart .mainform ul.text input.paswrd
{
margin:0px;
padding:0px 0px 0px 30px;
float:left;
width:250px;
font:bold 13px Arial, Helvetica, sans-serif;
line-height:25px;
background:url(../images/paswrd.png) no-repeat;
background-position:left;
}
.formpart .mainform ul.text input[type=checkbox]
{
margin:0px;
padding:0px;
width:20px;
float:left;
}
.formpart .mainform ul.list2 li input[type=submit]
{
margin:0px 0px 0px -112px;
padding:0px 10px;
width:60px;
background:#1A446C;
color:#fff;
font:normal 12px Arial, Helvetica, sans-serif;
line-height:25px;
border-radius:5px;
border:1px solid #000;
text-align:center;
text-decoration:none;
text-shadow:1px 0px 0px #d8d8d8;
}
.formpart .mainform ul.text li a.butn
{
margin:0px 0px 0px 150px;
padding:4px 10px;
width:60px;
background:#1A446C;
color:#fff;
font:normal 12px Arial, Helvetica, sans-serif;
line-height:25px;
border-radius:5px;
border:1px solid #000;
text-align:center;
text-decoration:none;
text-shadow:1px 0px 0px #d8d8d8;
}
.formpart .mainform ul.list2, .formpart .mainform ul.list3
{
margin:0px auto;
padding:0px;
list-style:none;
width:500px;
}
.formpart .mainform ul.list2 li, .formpart .mainform ul.list3 li
{
margin:0px;
padding:0px 0px 10px;
float:left;
font:bold 13px Arial, Helvetica, sans-serif;
line-height:25px;
}