Guest User

Untitled

a guest
Aug 19th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Positioning a background image
  2. <form>
  3. <label>Username:</label>
  4. <input type="text" name="username" required="required" />
  5. <label>Password:</label>
  6. <input type="password" name="password" required="required" />
  7. <input type="submit" value="Login" name="submit" class="submit" />
  8.  
  9. form {
  10. background:url(images/logo.png) no-repeat;
  11. width: 250px;
  12. padding: 20px;
  13. padding-top:120px;
  14. margin: 200px auto;
  15. -webkit-border-radius: 1em;
  16. -moz-border-radius: 1em;
  17. border-radius: 1em;
  18. border: 1px solid #DDD;
  19.  
  20. /*** Shadow behind the box ***/
  21. -moz-box-shadow:0px 2px 5px #e0e0e0;
  22. -webkit-box-shadow:0px 2px 5px #e0e0e0;
Add Comment
Please, Sign In to add comment