<Divclass= "INP"ID= "Userdiv"> <label for= "UserID"class= "Inp_lab"ID= "Labeluserid"onfocus= "Namefocus ();">Account</label> <inputname= "Loginusername"type= "text"ID= "txtUserName"onfocus= "Namefocus ();" /> </Div> <Divclass= "INP"> <label for= "UserPassword"class= "Inp_lab"ID= "Labeluserpassword">Password</label> <inputname= "Loginpassword"type= "Password"ID= "Txtpassword" /> </Div>
Css
. INP{margin:0 25px 13px;Height:38px;position:relative;background:URL (.. /image/loginbg.jpg) Repeat-x;}. INP Label{Color:#999;font-size:12px;Line-height:38px;padding:0 5px;cursor:text;}. INP input{Border:1px solid #b9cbdd;width:300px;Height:38px;Line-height:38px;background:None;padding:0;position:Absolute; Left:0px;Top:0px;font-size:14px;Color:#333;}. INP a{position:Absolute; Right:0px;Top:0px;Height:38px;Line-height:38px;width:95px;Display:Inline-block;background:#fff;Border-left:1px solid #d5dbe2;Color:#999;text-indent:12px;font-size:14px;}. INP Input#txtpassword{font-family:Arial;font-size:20px;Line-height:34px;}
Margin-bottom of InP 25px; sometimes it fails.
FIX:. INP margin to padding
. INP input left:0px; change to left:25px;
Margin-bottom invalidation of Bugs in Css:ie