Create login form - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Login Panel

Description

Create login form

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
input {<!-- w  ww. j  ava2s . com-->
   border:3px solid Chartreuse;
   padding:11px;
   border-radius:5px;
   font-size:15px;
}

input[readonly] {
   cursor:text;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <form> 
   <input type="text" placeholder="Enter a username" onfocus="this.removeAttribute('readonly');" readonly> 
   <br> 
   <br> 
   <input type="password" placeholder="Enter a password" onfocus="this.removeAttribute('readonly');" readonly> 
   <br> 
   <br> 
   <input type="submit" value="Submit"> 
  </form>  
 </body>
</html>

Related Tutorials