daniel7

Unos podataka - CSS

Apr 28th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. html, body {
  2. border: 0;
  3. padding: 0;
  4. margin: 0;
  5. height: 100%;
  6. }
  7.  
  8. body {
  9. background: tomato;
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. font-size: 16px;
  14. }
  15.  
  16. form {
  17. background: white;
  18. width: 40%;
  19. box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
  20. font-family: lato;
  21. position: relative;
  22. color: #333;
  23. border-radius: 10px;
  24. }
  25. form header {
  26. background: #FF3838;
  27. padding: 30px 20px;
  28. color: white;
  29. font-size: 1.2em;
  30. font-weight: 600;
  31. border-radius: 10px 10px 0 0;
  32. }
  33. form label {
  34. margin-left: 20px;
  35. display: inline-block;
  36. margin-top: 30px;
  37. margin-bottom: 5px;
  38. position: relative;
  39. }
  40. form label span {
  41. color: #FF3838;
  42. font-size: 2em;
  43. position: absolute;
  44. left: 2.3em;
  45. top: -10px;
  46. }
  47. form input {
  48. display: block;
  49. width: 78%;
  50. margin-left: 20px;
  51. padding: 5px 20px;
  52. font-size: 1em;
  53. border-radius: 3px;
  54. outline: none;
  55. border: 1px solid #ccc;
  56. }
  57. form .help {
  58. margin-left: 20px;
  59. font-size: 0.8em;
  60. color: #777;
  61. }
  62. form button {
  63. position: relative;
  64. margin-top: 30px;
  65. margin-bottom: 30px;
  66. left: 50%;
  67. transform: translate(-50%, 0);
  68. font-family: inherit;
  69. color: white;
  70. background: #FF3838;
  71. outline: none;
  72. border: none;
  73. padding: 5px 15px;
  74. font-size: 1.3em;
  75. font-weight: 400;
  76. border-radius: 3px;
  77. box-shadow: 0px 0px 10px rgba(51, 51, 51, 0.4);
  78. cursor: pointer;
  79. transition: all 0.15s ease-in-out;
  80. }
  81. form button:hover {
  82. background: #ff5252;
  83. }
Add Comment
Please, Sign In to add comment