Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--
input.m {
width: 290px;
height: 32px;
line-height: 32px;
font-size: 15px;
padding: 0 10px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
border: 1px solid #c2c2c2;
}
label {
font-size: 13px;
font-weight: bold;
margin-right: 5px;
float: left;
}
label.s {
width: 70px;
line-height: 34px;
text-align: right;
margin: 0 10px 0 0;
}
div.alert {
display: inline-block;
font-size: 12px;
padding-left: 21px;
line-height: 32px;
color: #f32c76;
background: yellow url(../images/icn-alert-s.png) no-repeat 0 center;
margin-left: 5px;
}
<!--[if IE 7]>
div.alert {
display: inline;
height: 32px;
zoom:1;
}
<![endif]-->
-->
</style>
<title></title>
</head>
<body>
<div class="row"><label for="password" class="s">Password</label>
<input class="m" type="password" name="password" id="password" />
<div class="alert">Incorrect password</div>
</div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
.m {
width: 290px;
height: 32px;
line-height: 32px;
font-size: 15px;
padding: 0 10px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
border: 1px solid #c2c2c2;
vertical-align:middle;
}
label {
font-size: 13px;
font-weight: bold;
margin-right: 5px;
}
.s {
width: 70px;
line-height: 34px;
text-align: right;
margin: 0 10px 0 0;
display:inline-block;
vertical-align:middle;
}
.alert {
display: inline-block;
font-size: 12px;
padding-left: 21px;
line-height: 32px;
color: #f32c76;
background: yellow url(../images/icn-alert-s.png) no-repeat 0 center;
margin-left: 5px;
vertical-align:middle;
}
</style>
</head>
<body>
<form name="form1" method="post" action="">
<div class="row">
<label for="password" class="s">Password</label>
<input class="m" type="password" name="password" id="password" />
<span class="alert">Incorrect password</span>
</div>
</form>
</body>
</html>