Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. CSS ////////////////////////////////////////////////////////////////////////////////////////////////
  2. .form-container {
  3. padding: 15vh 1vh;
  4. background-color: #cccccc;
  5. }
  6.  
  7. form{
  8. margin-right: auto;
  9. margin-left: auto;
  10. width: 40vw;
  11. background-color: rgba(90, 99, 86, 0.56);
  12. border: 1px solid black;
  13. padding: 5vw 20vw;
  14. border-radius: 10px;
  15. }
  16.  
  17. form div {
  18. display: flex;
  19. justify-content: space-between;
  20. width: 100%;
  21. margin-bottom: .5vw;
  22. }
  23.  
  24. form div label {
  25. font-weight: bold;
  26. font-style: italic;
  27. }
  28.  
  29. form div input {
  30. background-color: #868389;
  31. border: 1px solid black;
  32. border-radius: 5px;
  33. padding: 5px;
  34. }
  35.  
  36. form .button-container{
  37. justify-content: center;
  38. }
  39.  
  40. form .button-container button {
  41. background-color: #868389;
  42. border: 1px solid black;
  43. border-radius: 15%;
  44. padding: 5px;
  45. }
  46.  
  47. @media only screen and (max-width: 600px) {
  48. form {
  49. padding: 5vw 5vw;
  50. width: 50vw;
  51. }
  52.  
  53. form div input {
  54. width: 10vw;
  55. }
  56. }
  57.  
  58. HTML ////////////////////////////////////////////////////////////////////////////////
  59.  
  60. <section class="form-container">
  61. <form>
  62. <div>
  63. <label for="imie">Imię: </label>
  64. <input id="imie" placeholder="Imię..." type="text">
  65. </div>
  66. <div>
  67. <label for="nazwisko">Nazwisko: </label>
  68. <input id="nazwisko" placeholder="Nazwisko..." type="text">
  69. </div>
  70. <div class="button-container">
  71. <button>Wyślij</button>
  72. </div>
  73. </form>
  74. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement